Genericity versus inheritance
Bertrand Meyer · ACM SIGPLAN Notices · 1986
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.
Cited by 125 works. doi:10.1145/960112.28738
Authors
References
- A theory of type polymorphism in programming
- On understanding types, data abstraction, and polymorphism
- Krypton: A Functional Approach to Knowledge Representation
- CLU Reference Manual
- Principles of OBJ2
- A specification language
- Practical polymorphism
- Quelques concepts importants des langages de programmation modernes, et leur expression en SIMULA 67