Genericity versus inheritance

Genericity versus inheritance
复制标题

泛型与继承

DOI:
10.1145/28697.28738
复制
发表时间:
1986
期刊:
--
影响因子:
--
通讯作者:
B. Meyer
B. Meyer
中科院分区:
--
文献类型:
--
作者:
B. Meyer

文献摘要

被引文献

相似文献

像ADA或ML中的通用性一样,并且继承(如面向对象的语言)是确保软件组件的更好可扩展性,可重复使用性和兼容性的两种替代技术。本文是对这两种方法的比较分析。它研究了他们的相似性和差异,并评估每种语言只能在何种程度上模拟另一种语言。它显示了以静态键入语言成功结合两种方法的需要的功能,并介绍了编程语言Eiffel的主要特征,其设计在本研究的一部分中,包括多种遗传和有限的仿制家形式。 。
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.