Genericity versus inheritance
Author:
Open Access
- 1 June 1986
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 21 (11) , 391-405
Abstract
Genericity, as in Ada or ML, and inheritance, as in object-oriented languages, are two alternative techniques for ensuring better extendibility, reusability and compatibility of software components. This article is a comparative analysis of these two methods. It studies their similarities and differences and assesses to what extent each may be simulated in a language offering only the other. It shows what features are needed to successfully combine the two approaches in a statically typed language and presents the main features of the programming language Eiffel, whose design, resulting in part from this study, includes multiple inheritance and limited form of genericity under full static typing.Keywords
This publication has 4 references indexed in Scilit:
- On understanding types, data abstraction, and polymorphismACM Computing Surveys, 1985
- Principles of OBJ21985
- Krypton: A Functional Approach to Knowledge RepresentationComputer, 1983
- A theory of type polymorphism in programmingJournal of Computer and System Sciences, 1978