- With the class in question having the focus, invoke the command
in one of the following ways:
- Press Ctrl+OCtrl+O.
- On the main menu, choose .
- Right-click the editor and choose Generate on the context menu.
- Press Alt+InsertAlt+Insert.
- Choose on the pop-up menu.
The Select Methods To Override dialog box displays the list of methods that can be overridden. The list does not include the methods that are already overridden, or cannot be accessed from the current subclass.

- Select one or more methods to override.
- Having generated the overriding method, create the required source code.
Note the
icon that marks the overriding method in the left gutter. Use this icon to view the name of the base class, and navigate to the overridden method.

Note
File template responsible for overriding a method (Overridden method body) accepts predefined template variables from "File Header" (), e.g. ${USER}, ${DATE}, etc.
For example, consider the following file template:
#if ( $RETURN_TYPE != "void" )return $DEFAULT_RETURN_VALUE;#end // TODO ($USER, $DATE):To change the body of an implemented method, use File | Settings | File Templates.
Provided that an overridden class contains two methods, this template expands into the following code:
public void breathe() { // TODO (mio, 9/21/12): To change body of implemented methods use File | Settings | File Templates. } public void eat() { // TODO (mio, 9/21/12): To change body of implemented methods use File | Settings | File Templates. }

