不支持探测重载和多态的函数。
Probing of overloaded and polymorphic functions is not supported.
下面的定义可用于创建一个多态的纪录。
The following definitions can be used to create a polymorphic record.
封装、模块化和多态的应用均由模式来实现。
These applications of encapsulation, modularity, and polymorphism are implemented by the patterns.
编码规则非常灵活并支持图形数据和多态的表示。
The encoding rules are very flexible and support the representation of data graphs and polymorphism.
从外部看,actors同样是多态的——你最终都会把消息提交给一个信箱。
From the outside, actors can all duck-type the same -- you're always just submitting messages to a mailbox after all.
Haskell还有子类型,而且完全是多态的;这些特性超出了本文的范围,但如果您对此感兴趣,它们也值得研究。
Haskell also has subtypes and is completely polymorphic; these features go beyond this article's scope, but they're worth exploring on your own if you're interested.
Perl具有很方便的多态性:在将价格提高20%时,价格是数字;但是,如果将它们作为字符串写回,它们会保持您所指定的格式。
Perl is happily polymorphic: prices are Numbers while calculating the 20% price increase, but if you write them back as strings they remain in whatever format you wrote them in.
ActiveRecord具有一种称为多态关联的特性,非常适合将通用行为附加给类,完全无需继承。
ActiveRecord has a feature called polymorphic associations that is ideal for attaching common behavior to a class without inheritance.
涉及三张或更多的表,多态查询生成的SQL是这样的
Three or more tables are involved. A polymorphic query generates SQL like
这是一种典型的多态行为—提供相同行为的不同实现(不同的xml解析算法)。
This is classic polymorphic behavior - different implementations (different XML parsing algorithms) that provide the same behavior.
下面的示例涉及两个类之间的多态递归。
Here's an example involving polymorphic recursion across two classes.
清单11Facebook特殊用户的改进多态定义。
Listing 11 Improved polymorphic definition of Facebook Special user.
清单15Facebook特殊用户的改进多态定义。
Listing 15 Improved polymorphic definition of Facebook Special user.
为什么我们不向编译器发出类似“静态禁止多态递归”这样的命令呢?
Why don't we issue a command to the compiler like "statically forbid polymorphic recursion."
我们先前的简单示例(其中,多态递归作为一个简单直接的自引用发生)会使这一事实变得模糊。
This fact may be obfuscated by our simple example earlier in which the polymorphic recursion occurs as a simple, direct self-reference.
协议允许您在先前存在的类型上定义多态函数。
Protocols allow you to define polymorphic functions over preexisting types.
您的代码可以更加具有多态性——任何对一种类型的方法有反应的对象都可以看作这种类型——所以通常可以比其他语言更精简地表达思想。
Your code can be more polymorphic — everything that responds to a method can be treated as one type — so you can often express ideas much more concisely than you can in other languages.
保留索引、借助include使用热加载和在某些地方使用多态关联代替继承是三种可用来改进代码库的方法。
Keeping up with your indexes, using eager loading with include, and using polymorphic associations in places instead of inheritance are just three ways you can use to improve your code base.
由于有此约束,图中的分析不能用于多态病毒。
This constraint disqualifies the use of this analysis for polymorphic viruses.
毕竟,添加这种多态方法的能力是面向对象语言的关键优势之一。
After all, the ability to add such polymorphic methods is one of the key advantages of an object-oriented language.
工厂模式是根据不同类型创建多态对象的一个常见方法。
Factory pattern is a common pattern for creation of polymorphic objects of different concrete types.
清单13多态Facebook用户记录测试的执行结果。
Listing 13 Result of execution of polymorphic Facebook user record test.
清单16多态Facebook用户记录对扩展定义测试的执行结果。
Listing 16 Result of execution of polymorphic Facebook user record test with extended definition.
我认为对多个参数进行多态分派所具有的这种对称性比先前的样式要雅致得多。
I think this symmetry in polymorphic dispatch on multiple arguments is much more elegant than is the prior style.
就象静态检测糟糕的泛型构造函数调用一样,禁止多态递归会与递增式类编译发生冲突。
Just like static detection of bad generic constructor calls, forbidding polymorphic recursion conflicts with incremental class compilation.
Scala是静态类型的,这就允许它提供泛型类、内部类、甚至多态方法(Polymorphic Method)。
Scala is statically typed which allows it to provide generic classes, inner classes and even polymorphic methods.
下面是比较常见的一些SPUintrinsic(类型没有给出,这是因为它们大多为多态)。
Here are some of the more common SPU intrinsics (types are not given as most of them are polymorphic).
清单17应用JSON编码多态Facebook用户记录对扩展定义测试的执行结果。
Listing 17 Result of execution of polymorphic Facebook user record test with extended definition and JSON encoding.
利用面向对象的概念,如封装、继承和多态性。
Leverage object-oriented concepts such as encapsulation, inheritance, and polymorphism.
通过添加包装程序类,您打破了子类型的多态性。
By adding a wrapper class, you have broken subtype polymorphism.
应用推荐