可以在这里添加名称和超类了。
减少了子类及其超类之间的耦合。
通常,导入对象的超类就足够了。
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?
Kent讨论了如何为超类起一个好名字。
Kent discusses how to come up with a good name for a superclass.
调用超类的init方法。
然而,超类(父类)不一定要是抽象类。
However, super classes (parent classes) do not have to be abstract classes.
当然你不得不牺牲超类与其他类之间的关联。
Of course you have to sacrifice the association between the super class and other classes.
标准类作为超类是正常的。
下面是一个使用单表策略映射超类和子类的示例。
Here is an example of mapping a super class and a sub class using the single table strategy.
那篇文章是我见过的关于理解超类如何运行的最好的资源。
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.)
在我们的例子中,构造器接收了一个表示超类名称的字符串。
In the example shown here, the constructor accepts a string that represent the superclass name.
所以在创建对象之前,必须构造相同类或其超类的另一个对象。
So before an object is created, another object of the same class or of its superclass must be constructed.
这个默认的超类在功能测试的项目属性页面上有详细说明。
This default superclass is specified on the functional test project properties page.
在您创建自己的helper超类以后,在您的脚本中使用它。
After you create your own helper superclass, use it in your script.
超类将使用这个模型对象列表来创建对应的EditPart。
The superclass will use this list of model objects to create the corresponding EditParts.
任何子类数据的修改都涉及两张表:超类的表和子类的表。
Also any data change on a subclass involves two tables: the super class table and the subclass table.
同样,您几乎总是在子代方法主体的开始或结束部分调用超类方法。
Likewise, you almost always call a superclass method at either the start or end of a descendent method body.
Widget类是可以呈现在GWTUI中的几乎所有类的超类。
The superclass of pretty much everything you can render in a GWT UI is the Widget class.
应该在这个超类的service方法中创建范围键并实现通知逻辑。
Implement the creation of a scope key and the notification logic in the service method of this superclass.
超类映射支持;超类中定义的属性到列的映射应该可用于它的子类。
Super class mapping support; attribute to column mapping defined in a super class should be available for its child class.
空的finalizer(它抵消超类finalizer的作用)。
An empty finalizer (which negates the effect of the superclass finalizer).
plugin类是所有插件运行时类实现的抽象超类(请参见清单2)。
The Plugin class is the abstract superclass of all plug-in run time class implementations (see Listing 2).
这种情况下,最好的补救办法就是将这些被引用的字段也移到这个超类中。
The best remedy in this case is to move those referenced fields to the superclass, too.
子类名称要合格:对子类的命名会表述出其与超类之间的相似和差异之处。
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.
应用推荐