Next: Polymorphism
Up: Introduction to OO concepts
Previous: Encapsulation
Contents
- A subclass is derived from a superclass. An Employee is a Person.
- The subclass inherits the attributes and behavior of the superclass.
- The subclass can override the behavior of the superclass.
- Notice the use of the ``Is-A'' phrase to describe inheritance.
- Inheritance promotes re-use.
Next: Polymorphism
Up: Introduction to OO concepts
Previous: Encapsulation
Contents