January 2014
Intermediate to advanced
736 pages
70h 43m
English
Inheritance relationships form treelike hierarchical structures. A superclass exists in a hierarchical relationship with its subclasses. Let’s develop a sample class hierarchy (Fig. G.2), also called an inheritance hierarchy. A university community has thousands of members, including employees, students and alumni. Employees are either faculty or staff members.
Fig. G.2 | Inheritance hierarchy for university CommunityMembers.
Faculty members are either administrators (e.g., deans and department chairpersons) or teachers. The hierarchy could contain many other classes. For example, students can be graduate ...
Read now
Unlock full access