By adding a wrapper class, you have broken subtype polymorphism.
通过添加包装程序类,您打破了子类型的多态性。
This diagram is a good illustration of polymorphism.
该图是多态性的一个好例子。
You really learn about polymorphism when you've understood the patterns.
只有当你已经明白了这些模式之后,才能真正理解多态性。
Type parameters (polymorphism).
类型参数(多态性)。
Perhaps the most common application of polymorphism is in creating a family of objects that follow a common protocol.
也许多态性最常见的应用是在创建符合公共协议的一系列对象方面。
The ability to vary implementation of derived components in subtypes demonstrates one flavor of polymorphism in XML schemas.
改变子类型中派生组件的实现的能力演示了XML模式中多态性的一种形式。
Multiple dispatch does not merely generalize polymorphism, it also provides a more flexible alternative to inheritance in many contexts.
多分派不仅仅泛化了多态性,它还在许多上下文中提供了更加灵活的继承方式。
This allows you to swap out at runtime a different class exposing the same methods, taking advantage of polymorphism.
它允许利用多态性在运行时换出一个不同的类来公开相同的方法。
It supports polymorphism very well as you merely have records in the appropriate tables for each role that an object might have.
它能够很好地支持多态性,对于对象可能有的每个角色,只需要在相应的表中保存记录。
Anyway, this section talks about UML and class diagrams, inheritance, polymorphism, encapsulation... things they should have shown you in the beginning.
总之,该部分讨论了UML和类图、继承、多态性、封装…一些应该在开头为您介绍的东西。
In addition to introducing the benefits of object orientation, such as inheritance, polymorphism, and encapsulation, CORBA introduced a number of new features.
除引入面向对象的优点(如继承、多态性和封装)外,CORBA还引入了大量的新功能。
But then, the same limitation is true of polymorphism — it is only helpful when you cannot constrain an object to a single type for every execution path.
但是,多态性也具有同样的限制-它只在您不能对于每个执行路径将对象约束为单个类型时才有所帮助。
ChangingThePresent USES polymorphism in several places to provide common behavior, particularly when we are dealing with images.
ChangingThePresent在几个地方使用了多态以提供通用的行为,尤其是在处理图像的时候。
We'll start by presenting ways you can use Hibernate and polymorphism to incorporate behavior in the domain model.
在这个部分中,我们首先讨论如何使用Hibernate和多态性在领域模型中集成行为。
In this article, you have seen how to create schemas that use inheritance, encapsulation and polymorphism, and even had a glimpse of emerging design patterns in XML schema design.
在本文中,您已经看到如何创建使用继承、封装和多态性的模式,并且还大致了解了XML模式设计中新兴的设计模式。
Another reason is that by passing a DictionaryIO object to Dictionary, you can take advantage of class switching, or polymorphism.
另一个原因是通过将DictionaryIO对象传递给Dictionary,可以利用类切换或多态性。
The shrewd article Polymorphic Web services outlines this feature in detail and explains how XML extensions and dynamic service invocation techniques provide polymorphism.
文章 PolymorphicWebservices详细介绍了这个特性,解释了XML扩展和动态服务调用技术如何提供多态性。
ooRexx fully supports such aspects of object orientation as polymorphism, inheritance, and important libraries, such as TCP/IP and mathematics, so that Rexx programs can solve complex requirements.
ooRexx完全支持多态性、继承性和重要的库(例如TCP/IP 和算法)等面向对象的方面,从而使 Rexx程序可以满足较为复杂的要求。
Part 2 of this series covers more best practices in constructing a data model by leveraging polymorphism with Hibernate, other useful features of a generic DAO, and performance tuning the data model.
本系列的第2部分进一步讨论构造数据模型方面的最佳实践,包括利用Hibernate的多态性、泛型DAO的其他有用特性以及数据模型的性能调优。
You should have a good understanding of objects and what they 're about, including polymorphism.
你应该对对象和多态有深入的理解,知道它们究竟是些什么。
However, the current Nature Genetics report associates SLE with a polymorphism at gene TNFSF4.
然而,当期《自然-遗传学》杂志报告sle与TNFSF4基因多态性有关。
The best kind of polymorphism is the unintentional kind, where you discover that a function you already wrote can be applied to a type you never planned for.
最好就是无心插柳柳成荫的这种多态,这种情况下你会发现某个之前写过的函数可以用来处理一个之前没有计划到的类型。
Using the encapsulation, inheritance and polymorphism of OOP, a foundation class library of small satellite software is designed, the detail design of all base classes is introduced.
利用OOP的封装性、继承性和多态性,设计小卫星软件的基本类库,介绍各个基本类的具体设计思想。
Dextromethorphan metabolic phenotyping provides a new information for debrisoquine 4-hydroxylase (CYP2D6) polymorphism in native Chinese.
右美沙芬的代谢表型研究为中国本地人的异丁喹4-羟化酶(CYP2D6)多态性提供了新的信息。
A mechanism for treating different implementations as logically "the same kind of thing" - usually polymorphism is implemented via interface implementation and class inheritance.
l一种逻辑上做相同事情,但却有不同实现的机制。我们通常称之为多态机制。
Table per Concrete Class using Implicit polymorphism.
4使用隐式多态实现每个具体类一张表。
The encoding rules are very flexible and support the representation of data graphs and polymorphism.
编码规则非常灵活并支持图形数据和多态的表示。
If objects and inheritance go together like chocolate and peanut butter, objects and polymorphism are like hand and glove.
如果说对象和继承就像巧克力和花生酱的话,那对象和多态就好比手和手套。
Chapter 3 digs into inheritance (basic and multiple) and polymorphism.
第三章深刻讲解了继承(基本继承和多重继承)和多态。
Chapter 3 digs into inheritance (basic and multiple) and polymorphism.
第三章深刻讲解了继承(基本继承和多重继承)和多态。
应用推荐