• 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.

    如果一些字段对于某个子类意义,但是对于其他子类没有意义,可以它们中删除放到它们所属子类中。

    youdao

  • Since an instance of a subclass is an instance of your superclass, you could find multiple instances of the singleton.

    由于子类实例也是单例的实例,所以可能出现多个单例实例并存的情况。

    youdao

  • Every class you define is a subclass of owl: thing and a superclass of owl: Nothing.

    所定义每个owlthing子类并且owl:Nothing的超类。

    youdao

  • Qualified subclass name: name subclasses to communicate the similarities and differences with a superclass.

    子类名称合格:对子类的命名会表述出与超类之间的相似差异之处。

    youdao

  • In a subclass you can make assumptions about the internal state of the superclass when the method you override is getting called.

    子类重写方法被调用时,可以在子类中内部状态进行操作。

    youdao

  • Classes are arranged in a hierarchy, so that a subclass can inherit behavior from its superclass.

    有层次性所以子类可以继承类的行为

    youdao

  • The Pull up refactoring is nearly identical to Push down, except, of course, that it moves class members from a class to its superclass instead of subclass.

    PullUp重构PushDown几乎相同当然Pull Up是成员一个类中移其父类中,而不是子类

    youdao

  • Also, each subclass inherits methods from the superclass.

    同时每个亚纲继承来自总纲方法

    youdao

  • Access protected fields of a subclass in a superclass?

    访问受保护子类父类的

    youdao

  • That is, how a subclass can inherit fields and methods from a superclass.

    就是一个子类类中继承属性方法

    youdao

  • STI in Rails: How do I change from a superclass to a subclass without accessing the "type" attribute directly?

    STI导轨怎么改变从父类的子类没有访问类型属性直接?

    youdao

  • According to this principle, the ability to substitute a subclass object for a superclass object is characteristic of good design.

    原则表明,子类对象类对象替代能力优秀设计重要标志。

    youdao

  • It is not effective to add a new static synchronized method in a subclass that attempts to protect static fields declared in a superclass.

    通过子类中增加一个静态同步方法试图保护类中的静态成员变量无效的。

    youdao

  • A class that passes properties and methods to another class is called a superclass. A class can be both a subclass and a superclass.

    超越其他类别的类别称为超级类别,一个类别可以既是最高类别又是超级类别。

    youdao

  • A class that passes properties and methods to another class is called a superclass. A class can be both a subclass and a superclass.

    超越其他类别的类别称为超级类别,一个类别可以既是最高类别又是超级类别。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定