Image description: inheritance hierarchy 2
This image shows an inheritance hierarchy with four classes. The top class, java.lang.Object, has two subclasses, Account and Check, which are both shown at the second level below java.lang.Object. Account has a subclass CheckingAccount, which is shown at the third level just below Account.
Together, these four classes reflect the example explained in the preceding paragraph.
The instance data and methods in the Account class are as shown previously.
The Check class has the following instance data:
(payer)
(payee)
(amount)
and has the following instance methods:
1:Check
2:getAmount
3:getPayee
The CheckingAccount class has the following instance data:
(CheckFee)
and has the following instance methods:
1:
2:
3:
4:
5:print
6:processCheck
The main text explains instance methods that are shown with a number and without a name.
End of image description.