Introduction to OOP
Chapter 10: Subclasses and Subtypes:
next
previous
audio
real
text
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.
Intro OOP,
Chapter 10
, Slide 09