Cover Data Structures and Algorithms with Object-Oriented Design Patterns in Java
next up previous contents index

Inheritance

In Java one class may be derived from another. The derived class inherits all the fields and the methods of the base class or classes. In addition, inherited methods can be overridden in the derived class and new fields and functions can be defined. You should understand how the compiler determines the code to execute when a particular method is called.


next up previous contents index

Bruno Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.