<<< Inheritance Goals | Index | Inheritance example >>> |
A relationship between two classes
Base/parent/superclass and Derived/child/subclass
The existence of relationship is determined by the derived class.
Some aspects of the relationship are controlled by the base class.
In a sense, the derived class is a client of the base class.
Derived classes have the data and functions of the base class.
<<< Inheritance Goals | Index | Inheritance example >>> |