This example is ...
Unusual: Usually, derived-class operations will not hide base-class operations
Incomplete: The classes should have copy constructors and assignment operators
Slightly naughty: It does not follow the Liskov substitution principle
Previous slide
Next slide
Back to first slide
View graphic version