• 如果需要,多重继承支持更丰富的继承层次结构。

    Multiple inheritance supports a much richer inheritance hierarchy for the problems that require it.

    youdao

  • 另一方面,多重继承往往被视为面向对象编程的必备要素。

    Multiple inheritance, on the other hand, was commonly held as a necessary element of object-oriented programming.

    youdao

  • 第三章深刻讲解了继承(基本继承和多重继承)和多态。

    Chapter 3 digs into inheritance (basic and multiple) and polymorphism.

    youdao

  • 另一方面,在编程语言中允许多重继承的结果是语义极其复杂。

    On the other hand, allowing for multiple inheritance in a programming language results in tremendous semantic complexity.

    youdao

  • 可以把mix - in看成多重继承,但是它没有多重继承的麻烦。

    You can think of mix-ins as multiple inheritance without the multiple-inheritance headaches.

    youdao

  • 因为类的多重继承有危险性。

    Because multiple inheritance of classes is dangerous.

    youdao

  • 我说的理由是,否则会出现多重继承的问题。

    I'd say the reason is that otherwise a multiple-inheritance problem would occur.

    youdao

  • OWL允许多重继承,允许许多类分享相同的属性并允许属性之间相互继承。

    OWL permits multiple inheritance, allows for many classes to share the same property, and allows properties themselves to inherit from one another.

    youdao

  • Objective - C只支持类之间的单一继承,而UML支持多重继承。

    Objective-C only supports single inheritance between classes, while UML supports multiple inheritances.

    youdao

  • 遗憾的是,彻底放弃私有继承和多重继承会使我们在代码重用方面付出昂贵的代价。

    Unfortunately, tossing out private and multiple inheritance has cost us dearly in terms of code reuse.

    youdao

  • 多重继承可能使我们不必处理后续的问题,但它也重新将我们引向了虚拟继承,而这是绝对要避免的。

    Multiple inheritance might save us from the latter problem, but it would also lead us back to virtual inheritance, which we definitely want to avoid.

    youdao

  • 子对象多重继承自多个基类,每个基类都有虚函数,那么子类对象的内存布局是什么样的?

    A function that is virtual in a base class is implicitly virtual in its derived classes. When a derived class overrides a virtual, the parameters in the base and derived classes must match exactly.

    youdao

  • 它被用于CLOS的主流中,实际上它在其中是一种设计模式,尝试控制这种语言的多重继承所带来的不便。

    It was employed in the mainstream in CLOS where it was actually a design pattern to try to control the unwieldiness of the multiple inheritance of that language.

    youdao

  • 如果你在一个面向对象设计中发现了多重继承关系,确保没有哪个基类实际上是另一个基类的派生类。

    Whenever you have found a multiple inheritance relationship in an object-oriented design, be sure that no base class is actually a derived class of another base class.

    youdao

  • Class的抽象可由子类化和一种灵活的基于mixin的组合机制(它可作为多重继承的简单替代方案)来扩展。

    Class abstractions are extended by subclassing and a flexible mixin-based composition mechanism as a clean replacement for multiple inheritance.

    youdao

  • 该模型的设计参照了OMG和ODMG标准,支持对象和文字、类及其属性、方法和关系、外延和多重继承等概念。

    Referring to the OMG and ODMG standard, the model includes the OO concepts, such as Objects, Literals, Attributes, Methods, Relationships, Extents and Multi-inheritance, etc.

    youdao

  • Ruby和Scala是两种较新的语言,采取了多重继承的这种方法—正如我在上期介绍Scala的特征时所讨论的那样(参见参考资料)。

    Ruby and Scala are two newer languages that have taken the middle course on multiple inheritance - as I discussed last month when introducing Scala's traits (see Resources).

    youdao

  • 就算多重接口继承允许我们构造对应的接口集,但是实现这些接口的类不能直接遵循该结构。

    Granted, multiple interface inheritance would allow us to construct a corresponding set of interfaces, but the classes implementing these interfaces couldn't follow the structure directly.

    youdao

  • 在余氏作品中,渗透着文化中国的苦恋者、对故国乡土与精神家园的双重追寻者、“五四”感时忧国文学传统的继承者的多重精神向度。

    Yu's works embody multiple spiritual levels: earnest attachment to cultural China, pursuit of both native land and spiritual homeland, inheritance of the May 4 th literary tradition.

    youdao

  • 它继承了GrandCentral所有最为优秀的功能,而且在此基础上,它还添加了许多重大而有趣的新功能,像短信息和语音邮件的文本抄录功能。

    It takes the best features of GrandCentral and adds a number of important and interesting new features like SMS messaging and voicemail transcriptions.

    youdao

  • 它继承了GrandCentral所有最为优秀的功能,而且在此基础上,它还添加了许多重大而有趣的新功能,像短信息和语音邮件的文本抄录功能。

    It takes the best features of GrandCentral and adds a number of important and interesting new features like SMS messaging and voicemail transcriptions.

    youdao

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

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

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