你为什么会认为梳理打扮一类的置换活动常常是令人舒适的行为呢?
Why do you think displacement activities are so often comfort behaviors, such as grooming?
一项研究发现,教育类电视节目会额外给孩子们上一课,影响他们的行为。
A study has found that educational TV shows come with an added lesson that influences the child's behavior.
这些类是否存储了所有的数据信息且其中没有或者只有很少的行为信息?
Do these classes store all the data information and have none or little behavior information in them?
类的任何行为都必须作为协议方法实现。
Any behavior of the class must be implemented as protocol methods.
它自己本身并不提供本地化的行为;类必须自己提供本地化。
It does not, in and of itself, provide localized behavior; classes must provide localization themselves.
更糟的是,它们破坏了您所希望的类的某些行为。
Worse, they break certain behaviors you expect of your classes.
使用真正的对象类将数据和行为组合在一起。
You work with true object classes combining data and behavior.
那我们如何在派生项目里修改这些类的行为呢?
So how could we modify behavior of these classes from the derived project side?
行为:关于驻留在类之内但并非必须如此的功能的模式。
Behavior: patterns concerned with functionality but not necessarily where they reside in classes.
横切数个类的行为给集成测试带来了一个特定问题。
Behavior that crosscuts a number of classes poses a particular problem for integration tests.
表单操作类包含表单操作的行为。
特征很奇特,因为一个类可以按照需要整合许多特征,这与接口相似,但它们还可包含行为,这又与类相似。
Traits are unusual in that a class can incorporate as many of them as desired, like interfaces, but they can also contain behavior, like classes.
因此我决定创建一个类方法来封装上面的行为。
I decided to create a class method that would encapsulate the above behavior.
而且,生成的类变成哑数据容器,因为一般不能向它们添加行为。
Also, the generated classes become dumb data containers because you can't generally add behavior to them.
事实上,所有行为都必须在类的上下文中定义。
In fact, all behavior must be defined within the context of a class.
通过活动图可以清楚的描述类的行为。
The behavior of the class is described using an activity graph.
我们不想对每一个类测试这个新行为。
You wouldn't want to test every class for this new behavior.
“抽象”节点类,或者_ XO _,本身有一些“神奇”的行为。
The "abstract" node class, or _xo_, has a few "magic" behaviors in itself.
此外还会定义这些类的结构和行为。
The definition of the structure and behavior of these classes is thus performed as well.
它还表明特征的行为如何“下放到”实现类。
It also demonstrates how the trait's behavior is "deferred" down into the implementing class.
功能可被分为行为类或人口统计类。
The features can be categorized as either behavioral or demographic.
CSS类链接到HTC文件内的一个行为。
将这些代码添加进测试行为类。
把行为指定到具体的分析类。
所有这些都能影响应用或者类库的行为。
All these can influence the behavior of your application or library.
我更喜欢在类的内部说明类的运行时行为,将有关类的所有信息集中保存在一个地方。
I prefer specification of the runtime behavior of a class within the class itself, keeping all the information about a class in one place.
这些类将基础类行为的责任委托给基础类的一个实例。
These classes delegate responsibility for base class behavior to an instance of the base class.
类图捕捉必须行为;实例图捕捉可能行为。
Class diagrams capture must behavior; instance diagrams capture may behavior.
如果可以重写类的话,则可以重写它的方法的行为,因此您最安全的选择就是不允许将类子类化。
If the class can be overridden, its methods' behaviors can be overridden as well, so your safest bet is to disallow subclassing.
如果可以重写类的话,则可以重写它的方法的行为,因此您最安全的选择就是不允许将类子类化。
If the class can be overridden, its methods' behaviors can be overridden as well, so your safest bet is to disallow subclassing.
应用推荐