| |
Figure 1. Leaf Classes
This object model shows a number of leaf and nonleaf classes. Class A is the common parent of all classes in the hierarchy, and because of the inheritance relationships any data or function members defined on that class are available to all of the other classes. If instances of A never need to be created, A can be defined as an abstract class. Class C, also a base class, is the parent class of the leaf classes D and E. |