Genericity versus inheritance
Bertrand Meyer · 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 an object-oriented language that also features strong type checking.The discussion introduces the principal aspects of the language EiffePM whose design, resulting in part from this study, includes multiple inheritance and a limited form of genericity under full static typing. OVERVIEWDespite its name, today's software is usually not soft enough: adapting it to new uses turns out in most cases to be a harder endeavor than should be.It is thus essential to find ways of enhancing such software quality factors as extendibility (the ease
Cited by 74 works. doi:10.1145/28697.28738
Authors
References
- Object-Oriented Software Construction
- A theory of type polymorphism in programming
- On understanding types, data abstraction, and polymorphism
- Basic polymorphic typechecking
- Practical polymorphism
- Quelques concepts importants des langages de programmation modernes, et leur expression en SIMULA 67
- specification language