Introduction to OOP
Chapter 10: Subclasses and Subtypes:
Is This a Problem?
What does it take to create a subclass that is not a subtype?
The new class must override at least one method from the parent
It must preserve the type signatures
But it must violate some important property of the parent
Is this common? Not likely. But it shows you where to look for problem areas.
, Slide 09