• Overriding methods in a parent class is not limited to the constructor.

    父类中的重写方法不仅局限于构造函数。

    youdao

  • Static methods cannot be overridden but can be hidden if they are not final (Read about Overriding vs Hiding here).

    静态方法不能被覆盖,但如果它不是决定性的则可以被隐藏。

    youdao

  • You literally cannot compile this class without overriding these methods.

    如果不覆盖这些方法,根本无法编译此类。

    youdao

  • It is essential that the handler invoke methods in the superclass rather than methods in the overriding module (see Listing 9).

    处理程序必须调用超类中的方法而是重写模块中的方法(如清单9所示)。

    youdao

  • Rather than designing a policy from scratch, you're advised to use the existing default policy (which should fulfill most requirements), overriding some methods to fit your specific needs.

    与其从头开始设计策略,我建议您倒不如用现有的缺省策略(它应该可以满足大部分需求)、同时覆盖一些方法来适应您的特定需求。

    youdao

  • The xmllib works by the application programmer overriding the class XMLParser, and providing methods to handle document elements such as specific or generic tags, or character entities.

    应用程序员使用的xmllib可以覆盖xmlparser类,并提供处理文档元素(如特定或类属标记,或字符实体)的方法。

    youdao

  • If you are going to be adding or overriding several methods at once, Listing 13 shows you how to define the new methods in bulk.

    如果准备一次性添加或重写多个方法,清单13展示了如何以块的方式定义新方法?

    youdao

  • In most cases, this entails just subclassing one of the framework classes, and overriding one or more hook methods as needed, depending how unique or complex your requirements are.

    在多数情况下,这个结构仅仅是根据需求的独特性和惟一性对其中一个框架类划分子类,并根据需要覆盖一个或多个hook方法。

    youdao

  • Here I subclass ExprEditor in my own VerboseEditor, overriding three of the base class methods — all named edit , but with different parameter types.

    这里我在自己的VerboseEditor中派生了ExprEditor子类,重写了三个基本的类方法——它们的名字都是edit,但是有不同的参数类型。

    youdao

  • A handler has to be created for these events by either implementing an interface or extending the DefaultHandler class and overriding its methods as needed.

    必须通过实现接口或者扩展DefaultHandler类并根据需要重写它的方法,创建这些事件的handler。

    youdao

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

    TemplateMethod模式定义了基类算法的骨架,使用了抽象方法和覆盖将具体细节放到子类中。

    youdao

  • I set up the compiler so I have to specify the override annotation so as to clarify which methods are overriding base class methods.

    我对编译器进行了设置,所以我必须指定override注释,以便指明哪些方法要覆盖基类的方法。

    youdao

  • Now, I am responsible for training new staff, but you keep overriding my authority by trying to pose your methods.

    现在,是我负责给新员工培训,但是你老是提出你的方法,凌驾在我的权利之上。

    youdao

  • You can save changes to the cached data by overriding two methods.

    您可以借由覆写两个方法将变更储存至快取资料。

    youdao

  • Encourages the creation of finer-grained methods to simplify overriding.

    鼓励创建细化方法,以简化重载。

    youdao

  • This enables you to allow classes to derive from your class and prevent them from overriding specific virtual methods or properties.

    这可让您允许从您的类别衍生类别,并防止这些类别覆写特定的虚拟方法或属性。

    youdao

  • This enables you to allow classes to derive from your class and prevent them from overriding specific virtual methods or properties.

    这可让您允许从您的类别衍生类别,并防止这些类别覆写特定的虚拟方法或属性。

    youdao

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

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

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