superclass
superclass什么意思,superclass翻译
基本解释
n.: 【生】总纲
网络: 超类;父类;父类别
英汉解释
【生物学】总纲
词性分析
复数:superclasses
例句
Since an instance of a subclass is an instance of your superclass, you could find multiple instances of the singleton.
由于子类的实例也是单例类的实例,所以可能出现多个单例实例并存的情况。
An attempt was made to reuse an existing method name from a superclass, and the signatures did not match.
试图重用超类现有的方法名称,而签名不匹配。
Two other refactorings, Push Down and Pull Up, move class methods or fields from a class to its subclass or superclass, respectively.
还有两个重构工具,PushDown和PullUp,分别实现将类方法或者属性从一个类移动到其子类或父类中。
Because a superclass is not referenced as frequently as a sublcass the names do not have to be as concise.
由于超类不会像子类那样被频繁引用,对子类的命名就不必考虑太多简洁的因素。
However, the subclass leaves the concrete class as is and does not attempt to instantiate the superclass.
子类没有对具体的方法做改变,也没有试图实例化超类。
Similarly, a subclass destructor must call its superclass destructor after it has completed its own resource reclamation.
类似地,子类析构函数在它完成其资源释放之后,也要调用基类的析构函数。
According to this principle, the ability to substitute a subclass object for a superclass object is characteristic of good design.
此原则表明,子类对象对超类对象的替代能力是优秀设计的重要标志。
So before an object is created, another object of the same class or of its superclass must be constructed.
所以在创建对象之前,必须构造相同类或其超类的另一个对象。
Likewise, you almost always call a superclass method at either the start or end of a descendent method body.
同样,您几乎总是在子代方法主体的开始或结束部分调用超类方法。
Eclipse writes the superclass automagically with its new methods and alters the sibling classes to use the new superclass.
Eclipse将使用其新方法自动编写超类,然后更改兄弟类,使之使用新的超类。