减少了子类及其超类之间的耦合。
通常,导入对象的超类就足够了。
It is generally sufficient to import the superclass for your object.
帮助者超类提供了实际的帮助。
而有时则是直接从超类继承这一特性。
超类方法——在运行时不需要其他实例。
Superclass methods — no additional instance needed at run time.
它指明注释的方法将覆盖超类中的方法。
It indicates that the annotated method is overriding a method in a superclass.
怎样利用脚本帮助器超类加强您的脚本?
How to enhance your scripts with the script helper superclass?
然而,超类(父类)不一定要是抽象类。
However, super classes (parent classes) do not have to be abstract classes.
超类的方法可以通过使用相同的名称声明属性来扩展。
A method of a superclass can be extended by declaring an attribute with the same name.
那篇文章是我见过的关于理解超类如何运行的最好的资源。
That article is the single best resource that I've seen for understanding how the superclass works.
类的API目前包含对于继承和超类方法调用的完善支持。
The class API now includes full support for inheritance and superclass method calls. (See Mislav's tutorial for more info.)
下面是一个使用单表策略映射超类和子类的示例。
Here is an example of mapping a super class and a sub class using the single table strategy.
如果两个类需要支持相同的接口,它们都应该扩展相同的超类。
If two classes need to support the same interface, they should both extend the same superclass.
所以在创建对象之前,必须构造相同类或其超类的另一个对象。
So before an object is created, another object of the same class or of its superclass must be constructed.
然后,就可以从这个超类派生所有应用程序servlet。
Then you can extend all application servlets from this superclass.
这个默认的超类在功能测试的项目属性页面上有详细说明。
This default superclass is specified on the functional test project properties page.
超类将使用这个模型对象列表来创建对应的EditPart。
The superclass will use this list of model objects to create the corresponding EditParts.
因为该类是一个超类,所以只有三个应该被忽略的方法。
With this class as a super class, there are only three methods that should be overridden.
同样,您几乎总是在子代方法主体的开始或结束部分调用超类方法。
Likewise, you almost always call a superclass method at either the start or end of a descendent method body.
任何子类数据的修改都涉及两张表:超类的表和子类的表。
Also any data change on a subclass involves two tables: the super class table and the subclass table.
这种情况下,最好的补救办法就是将这些被引用的字段也移到这个超类中。
The best remedy in this case is to move those referenced fields to the superclass, too.
处理程序必须调用超类中的方法而是重写模块中的方法(如清单9所示)。
It is essential that the handler invoke methods in the superclass rather than methods in the overriding module (see Listing 9).
子类名称要合格:对子类的命名会表述出其与超类之间的相似和差异之处。
Qualified subclass name: name subclasses to communicate the similarities and differences with a superclass.
抽取超类与抽取接口的最大区别在于放入超类中的方法是被实际移到那里的。
A huge difference between extracting a superclass and extracting an interface is that the methods put in the superclass are actually moved there.
超类映射支持;超类中定义的属性到列的映射应该可用于它的子类。
Super class mapping support; attribute to column mapping defined in a super class should be available for its child class.
读写方法减少了超类中的更改影响到其子类的这种脆弱的基类问题所带来的风险。
Accessors reduce the risk of the fragile base class problem where changes in a superclass ripple throughout its subclasses.
常量池后面还有几项,它们引用了类本身、其超类以及接口的常量池项。
Following the constant pool are several items that reference constant pool entries for the class itself, its super class, and interfaces.
在与本文相关的解决方案中,您将看到每个操作的公共代码都被移到了抽象超类中。
In the solution associated with this article, you'll see that the common code for each of the actions has been moved to an abstract superclass.
另外,BaseBridge超类可以保证向前兼容IICE未来版本的连接器。
Furthermore, the BaseBridge superclass guarantees forward compatibility of your connector to future versions of II CE.
模板方法可以由实现者提供,但必须注意的一点是超类有可能已经实现了其模板方法。
Template methods can be provided by the implementer, who must not forget that the superclass can potentially have implemented its template methods.
应用推荐