Class Inheritance
Class Inheritance
- A TV is a kind of home electronics appliance
- And so are radio, VCR, CD player, LD player
- All appliances share common properties and behavior
- They can play audio, be turned on/off, etc.
- They also exhibit some differences
- One can construct a Home Electronics Appliance class
- All appliances are derived from it
- This is called inheritance
- Humans are good at classifying, building taxonomies
- Corresponds to OO inheritance hierarchies