up previous next contents
Next: Marking methods and classes Up: Extending Classes Previous: Constructors in extended classes   Contents

Subsections

Overriding methods, hiding fields, and nested classes

Overloading - providing more than one method with the same name but with different signatures. Overriding - replacing a superclass's implementation with your own.

Overriding

The super keyword

super.method() - uses the superclass's implementation of method.


Next: Marking methods and classes Up: Extending Classes Previous: Constructors in extended classes   Contents