Delegation is inheritance
- 1 December 1987
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 22 (12), 138-146
- https://doi.org/10.1145/38807.38820
Abstract
Inheritance and delegation are alternate methods for incremental definition and sharing. It has commonly been believed that delegation provides a more powerful model. This paper demonstrates that there is a “natural” model of inheritance which captures all of the properties of delegation. Independently, certain constraints on the ability of delegation to capture inheritance are demonstrated. Finally, a new framework which fully captures both delegation and inheritance is outlined, and some of the ramifications of this hybrid model are explored.Keywords
This publication has 3 references indexed in Scilit:
- An exemplar based SmalltalkPublished by Association for Computing Machinery (ACM) ,1986
- Using prototypical objects to implement shared behavior in object-oriented systemsPublished by Association for Computing Machinery (ACM) ,1986
- On understanding types, data abstraction, and polymorphismACM Computing Surveys, 1985