Specialization, Extension, and Inheritance
- slide 29 : 40
Inheritance of methods: Example.
Method inheritance in the bank account hierarchy
The base class BankAccount.
The class CheckAccount.
The class SavingsAccount.
The class LotteryAccount.
The class Lottery.
A subclass of LotteryAccount