By adding a wrapper class, you have broken subtype polymorphism.
通过添加包装程序类,您打破了子类型的多态性。
Dextromethorphan metabolic phenotyping provides a new information for debrisoquine 4-hydroxylase (CYP2D6) polymorphism in native Chinese.
右美沙芬的代谢表型研究为中国本地人的异丁喹4-羟化酶(CYP2D6)多态性提供了新的信息。
It supports polymorphism very well as you merely have records in the appropriate tables for each role that an object might have.
它能够很好地支持多态性,对于对象可能有的每个角色,只需要在相应的表中保存记录。
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.
但是,多态性也具有同样的限制-它只在您不能对于每个执行路径将对象约束为单个类型时才有所帮助。
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模式设计中新兴的设计模式。
If objects and inheritance go together like chocolate and peanut butter, objects and polymorphism are like hand and glove.
如果说对象和继承就像巧克力和花生酱的话,那对象和多态就好比手和手套。
Multiple dispatch does not merely generalize polymorphism, it also provides a more flexible alternative to inheritance in many contexts.
多分派不仅仅泛化了多态性,它还在许多上下文中提供了更加灵活的继承方式。
This diagram is a good illustration of polymorphism.
该图是多态性的一个好例子。
Anyway, this section talks about UML and class diagrams, inheritance, polymorphism, encapsulation... things they should have shown you in the beginning.
总之,该部分讨论了UML和类图、继承、多态性、封装…一些应该在开头为您介绍的东西。
The ability to vary implementation of derived components in subtypes demonstrates one flavor of polymorphism in XML schemas.
改变子类型中派生组件的实现的能力演示了XML模式中多态性的一种形式。
Perhaps the most common application of polymorphism is in creating a family of objects that follow a common protocol.
也许多态性最常见的应用是在创建符合公共协议的一系列对象方面。
Since XML is not a behaviorial language, polymorphism occurs at the attribute level.
因为XML不是行为语言,所以多态性出现在属性级别。
This allows you to swap out at runtime a different class exposing the same methods, taking advantage of polymorphism.
它允许利用多态性在运行时换出一个不同的类来公开相同的方法。
As I said earlier, the most common manifestation of the Open Closed Principle is using polymorphism to substitute an existing part of the application with a brand new class.
如果我前面所说的,使用开闭原则最通常的做法就是使用多态去用一个全新的类替换程序中现存的一部分。
In addition to introducing the benefits of object orientation, such as inheritance, polymorphism, and encapsulation, CORBA introduced a number of new features.
除引入面向对象的优点(如继承、多态性和封装)外,CORBA还引入了大量的新功能。
The encoding rules are very flexible and support the representation of data graphs and polymorphism.
编码规则非常灵活并支持图形数据和多态的表示。
This (nonsense) example's goal is aimed only at showing the power of implicit polymorphism.
这个(没有实际意义)的示例的目的就是为了显示隐式多态的能力。
You really learn about polymorphism when you've understood the patterns.
只有当你已经明白了这些模式之后,才能真正理解多态性。
As you've seen, operator AD hoc polymorphism, or operator overloading to the rest of us, can be quite powerful if carefully employed and documented.
可以看到,操作符的即时多态,或操作符重载,对于我们来说,如果小心使用和记录,会非常强大。
ChangingThePresent USES polymorphism in several places to provide common behavior, particularly when we are dealing with images.
ChangingThePresent在几个地方使用了多态以提供通用的行为,尤其是在处理图像的时候。
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扩展和动态服务调用技术如何提供多态性。
We'll start by presenting ways you can use Hibernate and polymorphism to incorporate behavior in the domain model.
在这个部分中,我们首先讨论如何使用Hibernate和多态性在领域模型中集成行为。
Another reason is that by passing a DictionaryIO object to Dictionary, you can take advantage of class switching, or polymorphism.
另一个原因是通过将DictionaryIO对象传递给Dictionary,可以利用类切换或多态性。
Recall from Chapter 1, Zero to Sixty: Introducing Scala that we highlighted the synergy between pattern matching and polymorphism.
回顾《第1章-从0分到60分:scala介绍》中,我们强调了模式匹配和多态之间的协作。
Table per Concrete Class using Implicit polymorphism.
4使用隐式多态实现每个具体类一张表。
Type parameters (polymorphism).
类型参数(多态性)。
Chapter 3 digs into inheritance (basic and multiple) and polymorphism.
第三章深刻讲解了继承(基本继承和多重继承)和多态。
These applications of encapsulation, modularity, and polymorphism are implemented by the patterns.
封装、模块化和多态的应用均由模式来实现。
These applications of encapsulation, modularity, and polymorphism are implemented by the patterns.
封装、模块化和多态的应用均由模式来实现。
应用推荐