









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Inheritance
9.2 Superclasses and Subclasses (Cont.)
Superclass Subclasses Student (^) GraduateStudent, UndergraduateStudent Shape (^) Circle, Triangle, Rectangle Loan (^) CarLoan, HomeImprovementLoan, MortgageLoan Employee (^) Faculty, Staff BankAccount (^) CheckingAccount, SavingsAccount Fig. 9.1 Inheritance examples.
9.2 Superclasses and Subclasses (Cont.)
Fig. 9.3 Inheritance hierarchy for Shapes.
Shape
TwoDimensionalShape ThreeDimensionalShape
Circle Square Triangle Sphere Cube Tetrahedron
Student (String name) {