Lecture overview -- Keyboard shortcut: 'u'  Previous page: Example: Bank Accounts -- Keyboard shortcut: 'p'  Next page: Example: Geometric Shapes -- 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 5 : 40
Object-oriented Programming in C#
Specialization, Extension, and Inheritance
Example: Bank Accounts in C#

A CheckAccount is a BankAccount, a SavingsAccount is a BankAccount, and a LotteryAccount is a BankAccount.

On this slide we will preview the mechanisms that are used for programming of the BankAccount specializations

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


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


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


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


/user/normark/oop-csharp-1/sources/c-sharp/bank-account/inheritance-1/lottery.csThe singleton class Lottery - used by LotteryAccount.