Inheritance, overloading and overriding

The Bank Account example

The Bank Account example

The Bank Account example

The Bank Account with abstract classes

The Bank Account with abstract classes

The Bank Account with abstract classes

The Bank Account with abstract classes

The Bank Account with abstract classes

Overloading the constructor

Overloading the constructor

Overloading a method

Bank account with interfaces only!

Bank account with interfaces only!

Bank account with interfaces only!

Bank account with interfaces only!

Interfaces or Abstract classes

Interfaces or Abstract classes (cont)

Types Revisited

Upcasting

Downcasting