There are three base implementations provided for subclassing.
所提供的用于生成子类的基本实现有三种。
Cleaner Web filter mechanism that allows more pluggable filtering support without subclassing.
更干净的Web过滤机制,无需子类化就可支持更多的插件式过滤器。
Continue defining the other EClasses in the EcoreX model by subclassing Ecore objects when necessary.
根据需要对Ecore对象划分子类,在EcoreX模型中继续定义其他EClass。
In this tutorial, we will learn about window subclassing, what it is and how to use it to your advantage.
在这一课中,我们将学习什么是窗口子类化,以及如何使用它才能对你有利。
With the advent of the Microsoft Win32 API, interprocess subclassing was discouraged and made a bit harder to code.
随着微软Win32API的到来,进程间子类化不再被鼓励使用并愈发变得困难起来。
Note that for subclassing to occur, the dialog box must be painted at least once.
使用该方法动态子类化时对话框必须先被至少描绘一次。
Decorators provide a flexible alternative to subclassing for extending functionality.
为了扩展功能,装饰者提供了比继承更灵活的替代方案。
Decorators provide a flexible alternative to subclassing for extending functionality.
就扩展对象功能来说,装饰者模式比生成子类更为灵活。
Extension is done by subclassing the aspect and defining a new advice binding in XML or via annotations.
扩展是通过生成方面的子类、并在XML中或通过注释定义新的通知绑定而实现的。
You might think, reasonably enough, that the same enhancement can be accomplished simply by subclassing the XO base class.
您可能会非常合理地想到,也可以定义xo基类的子类来实现同样的增强。
This kind of coding is tiresome to write, is easy to omit by accident, and does not stop an attacker from subclassing the method.
这样的代码编写起来很无趣,很容易被意外省略,也无法阻止攻击者子类化该方法。
If the class can be overridden, its methods' behaviors can be overridden as well, so your safest bet is to disallow subclassing.
如果可以重写类的话,则可以重写它的方法的行为,因此您最安全的选择就是不允许将类子类化。
As mentioned above, the nested syntax is often mistaken for subclassing by users who are not already familiar with extensions.
正如上面所提到的,嵌套的语法通常被错误地认为有子类化的关系——尤其是对那些还不熟悉扩展的用户来说。
Either subclassing ThreadGroup or installing an implementation of this new interface allows you to change that default behavior.
细分ThreadGroup或安装该新接口的实现都允许您更改默认行为。
It turns out that subclassing is not only familiar but is probably the most flexible and straightforward way to map from model to view.
结果证明,子分类方法不但十分常用,而且还可能是从模型映射到视图最灵活也是最直接的方法。
Now we put our attention on how to subclass a window. Note that subclassing is not limited to controls, it can be used with any window.
现在我们把注意力放在如何子类化一个窗口上。注意,子类化并不是仅限制于控件,它能被用于任何窗口。
You've actually seen one instance of another class hierarchy that also serves as a good illustration of the idea of extension by subclassing.
你已经看到了另一个类层次的实例,它很好的阐明了子类化的概念。
A class that implements Runnable can run without subclassing Thread by instantiating a Thread instance and passing itself in as the target.
实现Runnable的类可以不继承Thread而实例化为Thread实例,将自身作为运行目标。
Class abstractions are extended by subclassing and a flexible mixin-based composition mechanism as a clean replacement for multiple inheritance.
Class的抽象可由子类化和一种灵活的基于mixin的组合机制(它可作为多重继承的简单替代方案)来扩展。
Note that this is a working example of how to extend the functionality by aggregating objects — adding a BrowserExtension to a ReadOnlyPart — as opposed to subclassing.
注意,这是一个正在运行的示例,与子类化相对,它涉及如何通过聚合对象—将BrowserExtension添加到ReadOnlyPart—来扩展功能。
Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternative to subclassing for extending functionality.
装饰者模式动态地将职责附加到对象上。若要扩张功能,装饰者提供了比继承更有弹性的替代方案。
Subclassing the class is typically not an option here, since the method needs to be available to instances of the base class itself.
在这种情况下,继承这个类通常是行不通的,因为所添加的方法需要在基类的实例中可用。
Subclassing the class is typically not an option here, since the method needs to be available to instances of the base class itself.
在这种情况下,继承这个类通常是行不通的,因为所添加的方法需要在基类的实例中可用。
应用推荐