Specialization, Extension, and Inheritance
- slide 18 : 40
Multiple inheritance
Why should we care about multiple inheritance?
Specialization of two or more classes
Example:
An isosceles right triangle
is a
isosceles triangle and it
is a
right triangle
Example:
There may exists a bank account which
is a
checking account and it
is a
savings account
Extensions of two or more classes
"Program transport" from multiple superclasses
Geometrical shapes
Bank accounts