Encapsulators: A New Software Paradigm in Smalltalk-80
暂无分享,去创建一个
Certain situations arise in programming that lead to multiply polymorphic expressions, that is, expressions in which several terms may each be of variable type. In such situations, conventional object-oriented programming practice breaks down, leading to code which is not properly modular. This paper describes a simple approach to such problems which preserves all the benefits of good object-oriented programming style in the face of any degree of polymorphism. An example is given in Smalltalk-80 syntax, but the technique is relevant to all object-oriented languages.
[1] Alan Borning,et al. Multiple Inheritance in Smalltalk-BO , 1982, AAAI.
[2] David Robson,et al. Smalltalk-80: The Language and Its Implementation , 1983 .
[3] Charles Antony Richard Hoare,et al. An Operating System Structuring Concept , 1974 .