Introduction to OOP | Chapter 8: Inheritance and Substitution: | next | previous | audio | real | text |
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).