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将使用其新方法自动编写超类,然后更改兄弟类,使之使用新的超类。
In the object-oriented version, I extracted duplicated methods, moving them to a superclass along with a protected field.
在面向对象版本中,我提取了复制的方法,将其连同protected字段移到一个超类中。
After the @implementation keyword, we see the name of the class (Employee) and its superclass.
在@implementation关键字后面,我们看到了类名(Employee)及其超类。
Qualified subclass name: Name subclasses to communicate the similarities and differences with a superclass.
子类名称要合格:对子类的命名会表述出其与超类之间的相似和差异之处。
an additional first parameter must be specified as the class for which the method calling the superclass selector is defined.
当然,第一个参数是额外的,我们必须用它指定调用方法所属的类。
Superclass and humanization are two outstanding characters of the state theory of democratic socialism.
超阶级性和人性化是民主社会主义国家观的两个显著特征。
Another difference you'll notice are several radio buttons and a checkbox for selecting the superclass.
您还会注意到的另一个差别是有多个单选按钮和一个用于选择父类的复选框。
That article is the single best resource that I've seen for understanding how the superclass works.
那篇文章是我见过的关于理解超类如何运行的最好的资源。
A method of a superclass can be extended by declaring an attribute with the same name.
超类的方法可以通过使用相同的名称声明属性来扩展。
Fields are protected fields that the detector inherits from its superclass.
字段是检测器从其父类继承的protected字段。
Subclasses provide specialized behaviors from the basis of common elements provided by the superclass .
亚纲提供来自由总纲提供的通常元件的基专门的行为。
以上图片仅供学习交流使用,版权归原作者所有,如有侵权,请与我方联系