Lecture overview -- Keyboard shortcut: 'u'  Previous page: Inheritance of methods, properties, and indexers -- Keyboard shortcut: 'p'  Next page: Overriding and Hiding in C# -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 29 : 40
Object-oriented Programming in C#
Specialization, Extension, and Inheritance
Inheritance of methods: Example.

Method inheritance in the bank account hierarchy

/user/normark/oop-csharp-1/sources/c-sharp/bank-account/inheritance-3/bank-account.csThe base class BankAccount.


/user/normark/oop-csharp-1/sources/c-sharp/bank-account/inheritance-3/check-account.csThe class CheckAccount.


/user/normark/oop-csharp-1/sources/c-sharp/bank-account/inheritance-3/savings-account.csThe class SavingsAccount.


/user/normark/oop-csharp-1/sources/c-sharp/bank-account/inheritance-3/lottery-account.csThe class LotteryAccount.


/user/normark/oop-csharp-1/sources/c-sharp/bank-account/inheritance-3/lottery.csThe class Lottery.


Go to exerciseA subclass of LotteryAccount