Introduction to OOP: Chapter 7: Inheritance [next] [previous] [audio] [real] [text]

Heuristics for Subclassing - Generalization or Extension

The child class generalizes or extends the parent class by providing more functionality.

The child doesn't change anything inherited from the parent, it simply adds new features.

Example, Java Properties inheriting from Hashtable.

Intro OOP, Chapter 7, Slide 12