superclass
n. 超类
2026-03-22 12:37 浏览次数 21
n. 超类
Create Superclass创建超类
Superclass Crustacea甲壳上纲
superclass reference超类引用
superclass Rhizopoda根足总纲
indirect superclass间接超类
superclass constructor超类构造函数
superclass and超类和
Database SuperClass数据库超类
to guarantee the correct initialization for all the classes in the chain, the implementer must manually code the superclass method invocation as shown in listing 11.
要确保对链中所有类的正确初始化,实现者必须手动编写超类方法调用的代码,如清单11 所示。
if the class already uses a superclass, the newly generated superclass will have that class as its superclass, maintaining the class hierarchy.
如果这个类已经使用了一个超类,那么新生成的超类将把该类作为它的超类,并会保持类的层次结构。
template methods can be provided by the implementer, who must not forget that the superclass can potentially have implemented its template methods.
模板方法可以由实现者提供,但必须注意的一点是超类有可能已经实现了其模板方法。
a class or interface could not be loaded because it would be its own superclass or superinterface.
类或接口由于是自己的超类或超接口而不能被装入。
a method of a superclass can be extended by declaring an attribute with the same name.
超类的方法可以通过使用相同的名称声明属性来扩展。
after a script has been created, it retains the reference to the default superclass as its own helper superclass.
当创建完一个脚本以后,它保留着默认超类的参考,就好象是它自己的助手参考一样。
this default superclass is specified on the functional test project properties page.
这个默认的超类在功能测试的项目属性页面上有详细说明。
you can also specify a helper superclass for an individual script in the functional test script properties page.
您可以在功能测试的脚本属性页面详细说明单个脚本的帮助器超类。
you can alleviate this somewhat by having an abstract superclass that contains empty implementations of all methods for all visitors.
您可以使用一个抽象超类,在其中包含所有访问者的所有类的空实现,从而略微缓解难度。
thus, when a type parameter t is used as the superclass of a generic class, the annotation on t tells us exactly what super-constructors we can call.
因此,当类型参数t用作泛型类的超类时,t 的注释确切地告知我们可以调用哪些超级构造函数。
if fields make sense for one subclass but not the other, you can remove them from the superclass and push them down into the subclass they belong to.
如果一些字段对于某个子类有意义,但是对于其他子类没有意义,就可以把它们从超类中删除,并放到它们所属的子类中。
moving an operation from one class to another yields the same result unless the operation is moved to a superclass and is still visible from the class where it is invoked.
从一个类到另一个类的移动操作将会产生相同的结果,除非操作被移动到一个超类,并且仍然可以从调用它的类中查看。
the second part of the class signature (following the closing angle bracket) gives the superclass and superinterface (if any) signatures.
类签名的第二部分(尖括号外)给出了超类和超接口(若存在)的签名。
likewise, you almost always call a superclass method at either the start or end of a descendent method body.
同样,您几乎总是在子代方法主体的开始或结束部分调用超类方法。
superclass methods -- no additional instance needed at run time.
超类方法——在运行时不需要其他实例。
just as you sometimes want to call on superclass methods in an inherited method, you also sometimes want to call on less specific rules within a dispatcher.
就像您有时想对继承方法中的超类方法进行调用一样,您有时还想在分派器内对不太特定的规则进行调用。
so before an object is created, another object of the same class or of its superclass must be constructed.
所以在创建对象之前,必须构造相同类或其超类的另一个对象。
manual propagation to less specific multimethods can get tricky in many of the same ways that calls to superclass methods can get tricky.
调用超类方法的许多方式很棘手,而以同样方式对较为不特定的多元法所进行的手工传播也会很棘手。