corrected method override example

The first method override example was missing some parentheses.