Introduction to OOP | Chapter 10: Subclasses and Subtypes: | next | previous | audio | real | text |
It is also possible to create subtypes that are not subclasses. Think of Array in Smalltalk. This class is characterized by the following interface:
at: input put: value at: int sizeBut class Dictionary will also support the same interface, and perform similar actions -- but Dictionary is not a subclass of Array.