Overriding a Method
See Also
Class Outline displays all the methods that a class inherits from its superclass as well as from the other classes in the inheritance hierarchy. Using Class Outline, you can quickly add a definition to override an inherited method.
Note You cannot override a method that is marked as static or final.
To override an inherited method
-
In Class Outline, expand the Inherited Members node of the class. This node displays both methods and member variables; however, only methods can be overridden.
-
Right-click the method that you want to override. On the shortcut menu, click Override method.
-
A declaration for the method is inserted into the .java file, where you can add your implementation.