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 together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Specialization, Extension, and Inheritance - slide 29 : 40

Inheritance of methods: Example.
Method inheritance in the bank account hierarchy
bank-account.cs
The base class BankAccount.
check-account.cs
The class CheckAccount.
savings-account.cs
The class SavingsAccount.
lottery-account.cs
The class LotteryAccount.
lottery.cs
The class Lottery.
Go to exercise
A subclass of LotteryAccount