A simple view of the problem
Suppose we have a class Circle derived from a base class Shape.
If we have a pointer or reference to a Shape, it might actually be pointing or referring to a Circle.
Why should we care?
How can we tell?
Previous slide
Next slide
Back to first slide
View graphic version