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

Inheritance for Construction

If the parent class is used as a source for behavior, but the child class has no is-a relationship to the parent, then we say the child class is using inheritance for construction.

An example might be subclassing the idea of a Set from an existing List class.

Generally not a good idea, since it can break the principle of substituability, but nevertheless sometimes found in practice. (More often in dynamically typed languages, such as Smalltalk).

Intro OOP, Chapter 8, Slide 18