• 如果这些中的任何个的子类需要覆盖默认行为那么可以通过覆盖这个方法实现。

    If a subclass of one of these classes needed to override the default behavior, it could do so by overriding the method.

    youdao

  • 实现层次结构Scala中的效果是相同的:我们可以方法应用final防止子类覆盖可应用于声明本身来防止继承。

    Implementation hierarchy works the same way in Scala: We can apply final to the method to prevent a child class from overriding it or to the class declaration itself to prevent derivatives.

    youdao

  • TemplateMethod模式定义算法骨架使用抽象方法覆盖具体细节放到子类

    The Template Method pattern defines the skeleton of an algorithm in a base class, using abstract methods and overriding to defer individual details to child classes.

    youdao

  • 此类子类覆盖load方法数据添加items表中

    Descendants of this class override the load method to add data to the items table.

    youdao

  • 假设调用洗牌方法shuffle,你可能deck不过如果子类当中有覆盖方法,你运行的就是子类中的方法了。

    If you invoke a method like shuffle, you might get the one defined in Deck, but if any of the subclasses override this method, you'll get that version instead.

    youdao

  • 可以覆盖一个方法这个方法返回原始方法所声明返回对象子类

    You can also override a method with the same signature that returns a subclass of the object returned by the original method.

    youdao

  • 可以覆盖一个方法这个方法返回原始方法所声明返回对象子类

    You can also override a method with the same signature that returns a subclass of the object returned by the original method.

    youdao

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

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

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