Introduction to OOP Chapter 8: Inheritance and Substitution: next previous audio real text

Inheritance for Variance

Two or more classes that seem to be related, but its not clear who should be the parent and who should be the child.

Example: Mouse and TouchPad and JoyStick

Better solution, abstract out common parts to new parent class, and use subclassing for specialization.

Intro OOP, Chapter 8, Slide 21