Common Type System—Methods and Subclassing
Methods and Subclassing
We discuss subtyping and polymorphism in much greater detail later on in this chapter. But assuming that you are at least somewhat familiar with standard OO idioms, we will discuss virtual methods, overriding, and newslots here. All you need to understand for this discussion is that a type may subclass another type, forming a special relationship between them. The subclass inherits its base type’s nonprivate members, including methods. The topic here is controlling how those methods get inherited.
|

