第一种是优先级继承。
另一个例子是优先级继承,它是一种锁定策略,定义了锁竞争时如何管理锁同步。
Another example is priority inheritance, a locking policy that defines how lock synchronization is managed when a lock is contested.
Sass和LESS 是一种元语言,通过引入嵌套、变量、继承、mixin以及其它的强化来简化和提高对CSS3的可重用性。
Sass and LESS are meta-languages meant to simplify and improve the reusability of CSS3 by introducing nesting, variables, inheritance, mixins, and other enhancements.
支持这一点的一种方式是将该方法放入SuperHelper,然后让所有测试脚本继承Super Helper。
One way to enable this is to put the method into a Super Helper, and then to inherit that Super Helper into all your test scripts.
将一种特性添加到一个项目(包括动态web项目),意味着该项目将“继承”某些功能和行为。
Adding a nature to a project, including a Dynamic Web project, means that project "inherits" certain functionality and behaviour.
国际设计界开始越来越重视中式元素和符号的使用,中国元素作为我们的一种文化传统是应该被继承的。
International industry began to pay more and more attention to Chinese style elements and the use of symbols, the Chinese elements as a kind of our traditional culture should be inherited.
弥尔顿实质上继承了这两种传统,这两种与田园诗之间千丝万缕的联系。
Milton is essentially inheriting both of these traditions, both of these sets of associations with pastoral poetry.
但是,我们认为说明一种与继承相关的“税收”过高的实际情况,并指导我们去寻找一种更容易、代价更低的解决方案还是很有用的。
We thought, however, it was useful to illustrate a real-world situation where the "taxes" associated with inheritance were too high, and guided us to look for an easier, less costly solution.
也就是,一个“顾客”是“一种”用户,一个PA也是“一种”用户,从表面上看来这很自然地适合反映那些关系的继承层次结构的类型。
That is, a Customer "is-a-kind-of" user and a PA "is-a-kind-of" user, which on the surface seems like a natural fit for the type of inheritance hierarchy that reflects those relationships.
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).
它被用于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.
继承或复合都提供了一种更加干净的方法来扩展框架,如果这两种方法都不可行的话,那么问题就更加严重了。
Either inheritance or composition offers a cleaner way to extend the framework, and it's an even bigger indictment if those are both impossible.
接下来,我们介绍了自底向上的Web服务开发,虽然对 Web 服务开发人员来说也是一种重要的方法,但当数据模型需要继承的时候这种方法可能会出现问题。
Further, we have seen that bottom-up Web service development, while an important approach in the Web service developer's repetoire, can be problematic when the data model requires inheritance.
我们所有有用的文化遗产都应该以一种批判的方式得到继承。
All of our cultural heritage which is useful should be inherited, but in a critical way.
优先级继承是一种用于避免优先级反转的技术。
Priority inheritance is a technique for avoiding priority inversion.
Linux内核继承了一种通用框架,将策略从实现中分离了出来,而不是采用单一的方法。
Instead of adopting a single approach, the Linux kernel inherited a generic framework that separated policy from enforcement.
或许我们需要的是一种全新的继承术语,用于描述特征和实现类之间的关系。
Perhaps what we need is a new inheritance phrase, IN-TERMS-OF, to describe the relationship between a trait and an implementing class.
对象之间有四种类型的关系:继承、关联、聚合和组成。
There are four types of relationships that an object can be involved with: inheritance, association, aggregation, and composition.
同样地,WSDL 1.1甚至没有包含一种机制来提供接口继承。
As such, WSDL 1.1 did not even contain a mechanism allowing for interface inheritance.
保留索引、借助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.
为每个派生类再次设置这些属性是一种浪费,因为通过继承它们就会拥有这些属性。
Setting them again for each derived class is a waste, since they would be available anyway by inheritance.
一种常见的定义数据的方法是通过继承——使用现有的数据定义并添加参数。
A common approach to defining data is through inheritance - taking an existing data definition and adding parameters.
继承是一种方法,通过它,类的对象可以访问以前精确定义过的类中的成员变量和函数,而不用重新声明那些定义。
Inheritance is the means by which objects of a class can access member variables and functions contained in previously defined class, without having to restate those definitions.
将继承映射到关系数据库中有三种基本解决办法,为更好地理解它们,我将讨论在图1中显示的映射类图表的优缺点。
There are three fundamental solutions for mapping inheritance into a relational database, and to understand them I will discuss the trade-offs of mapping the class diagram presented in Figure 1.
里氏替换原则就是一种保证正确使用继承的方法。
The "Liskov's Substitution Principle" is just a way of ensuring that inheritance is used correctly.
类型有两种“用户”:继承类型,以及使用类型实例的代码。
There are two kinds of “users” of a type: derived types and code that works with instances of the type.
在Flash7中引入了ActionScript 2.0,这是一种强类型的语言,支持基于类的编程特性,比如继承、接口和严格的数据类型。
ActionScript 2.0 was introduced in Flash 7, which was strongly typed and allowed class-based programming features, such as inheritance, interfaces, and strict data typing.
他的创作,继承了古代直至“五四”以来的文学传统,并吸收了某些外国文艺思潮和创作技法,形成一种兼收并蓄、蕴藉和谐的风格。
He inherited literary tradition from ancientry to "May 4th movement" and absorbed some trend of literary thought and creative skill of fremdness and formed compatible and implicit style.
他的创作,继承了古代直至“五四”以来的文学传统,并吸收了某些外国文艺思潮和创作技法,形成一种兼收并蓄、蕴藉和谐的风格。
He inherited literary tradition from ancientry to "May 4th movement" and absorbed some trend of literary thought and creative skill of fremdness and formed compatible and implicit style.
应用推荐