First page Back Continue Last page Overview Graphics
Inheritance (an intuitive description)
A child class
- will be given all the properties of the parent class
- may in addition define new properties of its own
- may redefine some of the properties of the parent class to
Inheritance is transitive
- if we have Dog inherits from Mammal and Mammal inherits from Animal then Dog has behavior defined in both Animal and Mammal
Notes: