You can think of mix-ins as multiple inheritance without the multiple-inheritance headaches.
可以把mix - in看成多重继承,但是它没有多重继承的麻烦。
On the other hand, allowing for multiple inheritance in a programming language results in tremendous semantic complexity.
另一方面,在编程语言中允许多重继承的结果是语义极其复杂。
OWL permits multiple inheritance, allows for many classes to share the same property, and allows properties themselves to inherit from one another.
OWL允许多重继承,允许许多类分享相同的属性并允许属性之间相互继承。
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.
它被用于CLOS的主流中,实际上它在其中是一种设计模式,尝试控制这种语言的多重继承所带来的不便。
Multiple dispatch does not merely generalize polymorphism, it also provides a more flexible alternative to inheritance in many contexts.
多分派不仅仅泛化了多态性,它还在许多上下文中提供了更加灵活的继承方式。
Due to the existence of multiple species and RACES, and the quantitative inheritance of resistance, breeding for resistance to the pathogen has been slow.
由于该病病原菌存在多个种和小种以及对该病的抗性呈数量性状遗传,因此通过育种途径来改良抗性进展缓慢。
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).
Ruby和Scala是两种较新的语言,采取了多重继承的这种方法—正如我在上期介绍Scala的特征时所讨论的那样(参见参考资料)。
Unfortunately, tossing out private and multiple inheritance has cost us dearly in terms of code reuse.
遗憾的是,彻底放弃私有继承和多重继承会使我们在代码重用方面付出昂贵的代价。
Offering both an interface and an abstract class is redundant, but I find it convenient: in most cases, I only need the abstract class, but the interface enables multiple inheritance.
同时提供接口和抽象类是多余的,但我发现这样很方便:在大多数情况下,我只需要抽象类,但接口支持多继承性。
Chapter 3 digs into inheritance (basic and multiple) and polymorphism.
第三章深刻讲解了继承(基本继承和多重继承)和多态。
The results showed that the disease resistance of F 1 hybrids was continual and had quantitative character inheritance that was controlled by multiple gene.
结果表明,不同组合后代群体的抗性呈连续性分布,表现出多基因控制的数量性状遗传特征。
Scala supports single inheritance, not multiple inheritance.
Scala支持单继承,不支持多继承。
Multiple inheritance supports a much richer inheritance hierarchy for the problems that require it.
如果需要,多重继承支持更丰富的继承层次结构。
Multiple inheritance might save us from the latter problem, but it would also lead us back to virtual inheritance, which we definitely want to avoid.
多重继承可能使我们不必处理后续的问题,但它也重新将我们引向了虚拟继承,而这是绝对要避免的。
Yu's works embody multiple spiritual levels: earnest attachment to cultural China, pursuit of both native land and spiritual homeland, inheritance of the May 4 th literary tradition.
在余氏作品中,渗透着文化中国的苦恋者、对故国乡土与精神家园的双重追寻者、“五四”感时忧国文学传统的继承者的多重精神向度。
Granted, multiple interface inheritance would allow us to construct a corresponding set of interfaces, but the classes implementing these interfaces couldn't follow the structure directly.
就算多重接口继承允许我们构造对应的接口集,但是实现这些接口的类不能直接遵循该结构。
A parent class to extend function from (plus any "mix-in" classes to simulate multiple inheritance).
用于扩展函数的父类(以及模拟多个继承的“混合”类)。
Class abstractions are extended by subclassing and a flexible mixin-based composition mechanism as a clean replacement for multiple inheritance.
Class的抽象可由子类化和一种灵活的基于mixin的组合机制(它可作为多重继承的简单替代方案)来扩展。
Among the three leading contenders in the ease of use category, dom4j differs from the others in using an interface-based approach with multiple layers of inheritance.
就使用方便这一范畴而言,在JDOM、dom4j和electric XML这三个主要竞争者中,dom 4 j与其它两个的区别在于它使用带有多个继承层的基于接口的方法。
Objective-C only supports single inheritance between classes, while UML supports multiple inheritances.
Objective - C只支持类之间的单一继承,而UML支持多重继承。
Whenever you have found a multiple inheritance relationship in an object-oriented design, be sure that no base class is actually a derived class of another base class.
如果你在一个面向对象设计中发现了多重继承关系,确保没有哪个基类实际上是另一个基类的派生类。
They are comparable to C++ multiple inheritance constructs but omit the nasty side-effect known as the diamond syndrome.
它类似于C++中多继承的概念,但却没有众所周知的diamond syndrome副作用。
Multiple inheritance, on the other hand, was commonly held as a necessary element of object-oriented programming.
另一方面,多重继承往往被视为面向对象编程的必备要素。
Users must understand the differences and interactions between metaclass programming and traditional object-oriented programming (under both single and multiple inheritance).
用户必须理解元类编程和传统面向对象编程的不同点和相同点(单继承和多继承)。
Asthma is a disease of multifactorial inheritance and is associated with multiple genes.
哮喘是一种多基因遗传病,近来发现许多染色体区域的多种基因与哮喘相关。
Asthma is a disease of multifactorial inheritance and is associated with multiple genes.
哮喘是一种多基因遗传病,近来发现许多染色体区域的多种基因与哮喘相关。
应用推荐