多重继承
- multiple inheritance
-
Java语言中模拟多重继承的研究与实现
A Research of Multiple Inheritance and Realization in Java
-
在快速转向Java语言时,我们认为多重继承与私有继承一样存在缺陷。
When we fast-forward to the Java language , we perceive that multiple inheritance is just as flawed as private inheritance .
-
Java语言支持接口的多重继承,因此如果Order和Contract都是接口,则您可以使此技术起作用。
The Java language does support multiple inheritance of interfaces , so if Order and Contract were both interfaces , you could make this technique work .
-
Java开发人员可能会因从虚拟多重继承中解放出来而高兴,但代价是程序员往往要完成辛苦而易于出错的工作。
Java developers may rejoice in being free of virtual multiple inheritance , but the trade-off is often painstaking and error-prone work done by the programmer .
-
Objective-C只支持类之间的单一继承,而UML支持多重继承。
Objective-C only supports single inheritance between classes , while UML supports multiple inheritances .
-
但是Java语言不支持具体类的多重继承,这具有充分的理由:它会导致复杂的和有时难于预测的类继承。
But the Java language doesn 't support multiple inheritance of concrete classes , for a good reason : it leads to complex and sometimes unpredictable class hierarchies .
-
Class的抽象可由子类化和一种灵活的基于mixin的组合机制(它可作为多重继承的简单替代方案)来扩展。
Class abstractions are extended by subclassing and a flexible mixin-based composition mechanism as a clean replacement for multiple inheritance .
-
在这一期的Scala指南中,我回顾了Java语言中多重继承和私有继承的历史。
In this month 's guide to Scala , I revisit the history of multiple and private inheritance in the Java language .
-
由于Python支持多重继承,抽象可以达到相当有害的复杂程度。
Because Python supports multiple inheritance , abstraction can be taken to a level of complexity that is quite unhealthy .
-
例如,在二十年前,对于Java语言的创建者来说,反映C++风格的私有继承和多重继承是必要的。
For instance , 20 years ago , it made sense to the creators of the Java language to reject both C + + - style private inheritance and multiple inheritance .
-
传统的面向对象编程,尤其是在诸如Python之类允许多重继承的语言中,都会试图使用一个继承层次结构来模块化关注事项。
Traditional object-oriented programming , especially in languages like Python that allow multiple inheritance , attempt to modularize concerns with an inheritance hierarchy .
-
多重继承是否真的必不可少(就像C++的创作者认定的那样),它是否不必要而丑陋的(就像C和Java的创作者坚信的那样)?
Is multiple inheritance really necessary ( as the maker of C + + decided ), or is it gratuitous and ugly ( as determined by the makers of C # and the Java language )?
-
用元素层次、多重继承、重载、阻断、多态性和冲突处理机制扩展XML模式语言DTD,提出了扩展面向对象的特性语义以及检验一个文档实例符合扩展DTD的有效规则;
We extend DTD , called object-oriented DTD , with element hierarchy , multiple inheritance , overriding , blocking , polymorphism , and conflict resolutions .
-
OWL允许多重继承,允许许多类分享相同的属性并允许属性之间相互继承。
OWL permits multiple inheritance , allows for many classes to share the same property , and allows properties themselves to inherit from one another .
-
扩展DTD解析器是面向对象的XML应用基础,具有元素继承层次、多重继承的扩展模式语言DTD支持面向对象的XML。
As a standard , the extended DTD parser is the foundation of applying object-oriented XML data . Extended DTD with element inheritance hierarchy and multiple inheritance supports the oriented-object XML .
-
可以把mix-in看成多重继承,但是它没有多重继承的麻烦。
You can think of mix-ins as multiple inheritance without the multiple-inheritance headaches .
-
Ruby和Scala是两种较新的语言,采取了多重继承的这种方法&正如我在上期介绍Scala的特征时所讨论的那样(参见参考资料)。
Ruby and Scala are two newer languages that have taken the middle course on multiple inheritance & as I discussed last month when introducing Scala 's traits ( see Resources ) .
-
OO技术用类来描述具有相同特征的一组对象,以继承作为共享机制,支持单一继承和多重继承。
OO technology describes with class a group of objects with the same features to take inheritance as their shared system , and to support single inheritance and multiple inheritance .
-
首先用元素层次,多重继承和多态扩展了XML-RL数据模型。
The paper first extend the XML RL data model with element hierarchy , multiple inheritance and polymorphism .
-
它被用于CLOS的主流中,实际上它在其中是一种设计模式,尝试控制这种语言的多重继承所带来的不便。
It was employed in the mainstream in CLOS where it was actually a design pattern to try to control the unwieldiness of the multiple inheritance of that language .
-
该模型的设计参照了OMG和ODMG标准,支持对象和文字、类及其属性、方法和关系、外延和多重继承等概念。
Referring to the OMG and ODMG standard , the model includes the OO concepts , such as Objects , Literals , Attributes , Methods , Relationships , Extents and Multi-inheritance , etc.
-
分析了Eiffel中复合继承的两种方式&多重继承和重复继承,并对多重继承和重复继承中的重命名、未定义、选择等面向对象技术作了总结。
This paper analyzes on two modes of the complex inheritance in the Eiffel & the multi-inheritance and the repeated inheritance , and sums up the object-oriented techniques in the multi-inheritance and the repeated inheritance such as the renamed , undefined and selected .
-
关于多重继承机制冲突的解决策略
On The Strategy Solving Conflict Problem Introduced by Multiple Inheritance
-
这是一个简单的用多接口来模仿多重继承的例子。
This is a simple example of inheriting characteristics of multiple interfaces .
-
同时,讨论了模糊类层次中多重继承的问题。
Simultaneously , the problem of multiple inheritance in class hierarchy is considered .
-
选择继承在多重继承中的应用技术
Choice Application Technique of Selecting Inheritance in Multi-Inheritance
-
如果需要,多重继承支持更丰富的继承层次结构。
Multiple inheritance supports a much richer inheritance hierarchy for the problems that require it .
-
不过,多重继承只能用在被认为可以减轻这一问题的接口实现中。
However , multiple inheritance being used only for interface implementation was thought to alleviate this problem somewhat .
-
C~(++)多重继承中冲突的一种动态解决方案
A dynamic scheme of resolving the confliction in multiplexing inheritance in C ~ ( + + ) programming
-
遗憾的是,彻底放弃私有继承和多重继承会使我们在代码重用方面付出昂贵的代价。
Unfortunately , tossing out private and multiple inheritance has cost us dearly in terms of code reuse .