Encapsulators: a new software paradigm in Smalltalk-80
- 1 January 1986
- proceedings article
- Published by Association for Computing Machinery (ACM)
- Vol. 21 (11) , 341-346
- https://doi.org/10.1145/28697.28731
Abstract
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.Keywords
This publication has 0 references indexed in Scilit: