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

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

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 singleton class Lottery - used by LotteryAccount.