An alternative to subclassing
暂无分享,去创建一个
Smalltalk-80 obtains some of its expressive power from arranging classes in a hierarchy. Inheritance is an important aspect of this hierarchy. An alternative organization of classes is proposed that emphasizes description instead of inheritance. This alternative can be used with compile-time type checking and retains the important characteristics of Smalltalk's hierarchy.
[1] David Robson,et al. Smalltalk-80: The Language and Its Implementation , 1983 .
[2] Alan Borning,et al. Multiple Inheritance in Smalltalk-BO , 1982, AAAI.