• Other languages would have to resort to Inheritance for this, ie. define the method in a class and force users to extend that.

    其他编程语言可能使用继承才能做到:比如定义方法强迫用户扩展这个方法。

    youdao

  • As with traditional inheritance languages, an object need not utilize the same class for every method it calls.

    传统继承式语言一样对象必将同一个用于调用每个方法

    youdao

  • Inheritance allows you to reuse and customize existing code inside a new class.

    继承允许新的重用自定义现有代码

    youdao

  • Anyway, this section talks about UML and class diagrams, inheritance, polymorphism, encapsulation... things they should have shown you in the beginning.

    总之部分讨论UML继承多态性封装…一些应该开头介绍东西

    youdao

  • Setting them again for each derived class is a waste, since they would be available anyway by inheritance.

    每个派生再次设置这些属性一种浪费因为通过继承它们会拥有这些属性。

    youdao

  • Either write a separate program to create the tables, or add the necessary functionality in your class with inheritance.

    编写一个单独程序创建或者继承时中添加必需功能

    youdao

  • Discovering the entire inheritance tree structure from an existing system is particularly useful, because it helps you uncover what the top-level class is and what subclasses are in the tree.

    一个已存在系统中发现整个继承结构相当有用的因为揭露树中什么顶级以及什么是子类

    youdao

  • Perhaps what we need is a new inheritance phrase, IN-TERMS-OF, to describe the relationship between a trait and an implementing class.

    或许我们需要一种全新继承术语,用于描述特征实现之间关系

    youdao

  • Offering both an interface and an abstract class is redundant, but I find it convenient: in most cases, I only need the abstract class, but the interface enables multiple inheritance.

    同时提供接口抽象多余的,发现这样很方便大多数情况下,我需要抽象类,但接口支持继承性

    youdao

  • It also hurts the design of your domain classes because this utility class must now sit at the top of your object hierarchy, not allowing you to use inheritance to consolidate common behavior.

    不利于设计因为这个实用类现在必须位于对象层次结构顶层允许使用继承整合常见行为

    youdao

  • To model inheritance, use the generalization relationship provided by the UML modeling palette, which is drawn from the inherited class to the base class.

    建模继承可以利用uml建模面板提供一般化关系是从继承基础而绘制出来的。

    youdao

  • Implicit class loading occurs when a class is loaded as result of a reference, instantiation, or inheritance (not via an explicit method call).

    隐式装入发生由于引用实例继承导致装入时候(不是通过方法调用)。

    youdao

  • There are three fundamental solutions for mapping inheritance into a relational database, and to understand them I will discuss the trade-offs of mapping the class diagram presented in Figure 1.

    将继承映射关系数据库中三种基本解决办法,为更好理解它们讨论1中显示映射图表优缺点

    youdao

  • It is also important that you understand basic object-oriented paradigms, such as inheritance, class, interface, and so on.

    而且理解基本面向对象概念(继承接口)很重要

    youdao

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

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

    youdao

  • For example, a constraint may disallow multiple inheritance, or it may require that a class must have a particular type of attribute. This means that.

    例如限制可能不允许多重继承或者是它可能需要一个必须具备一个特殊属性类型

    youdao

  • To reuse object-oriented code, you extract the target code into another class, then use inheritance to access it.

    重用面向对象代码目标代码提取(extract)另一个中,然后再继承访问

    youdao

  • Identify an inheritance tree UML class diagram.

    识别一个uml继承

    youdao

  • The class API now includes full support for inheritance and superclass method calls. (See Mislav's tutorial for more info.)

    API目前包含对于继承超类方法调用的完善支持

    youdao

  • Figure 5 demonstrates the process of generating an inheritance tree class diagram.

    5展示产生一个继承过程

    youdao

  • This aids reuse, as it enables other handlers to log without forcing the inheritance of the DebugMediation class.

    有助于重用允许其他处理程序在强制继承DebugMediation情况下进行记录。

    youdao

  • ActiveRecord has a feature called polymorphic associations that is ideal for attaching common behavior to a class without inheritance.

    ActiveRecord具有一种称为多态关联特性非常适合将通用行为附加,完全无需继承。

    youdao

  • Here is a simple example of normal inheritance. We define a Noble base class, with subclasses such as Prince, Duke, Baron, etc.

    这里普通继承简单例子我们定义了一个Noble它有子类Prince,Duke,Baron等等

    youdao

  • Listing 3: Examining the inheritance structure of a class.

    清单3检查继承结构

    youdao

  • The base widget class has been designed to take advantage of the inheritance feature provided by Dojo. Following are some of the functions the the base widget implements.

    基本部件设计利用Dojo提供继承特性以下基本小部件实现一些功能

    youdao

  • As opposed to languages that only support single inheritance, Scala has a more general notion of class reuse.

    支持继承语言相比,Scala具有广泛意义上的重用

    youdao

  • As I've done in previous articles in this series, I'll use the Person class as a starting point for exploring Scala's inheritance system. Listing 1 shows the Person class definition.

    系列之前文章类似,使用Person作为起点探索Scala继承系统

    youdao

  • Figure 2 is simply pointing out the concept of Class, which is a highly specialized element that is related to interface and data type (through its inheritance from Classifier).

    2简单地指出Class概念一种接口以及数据类型有关(通过Classifier继承)的高度专业化元素

    youdao

  • A parent class to extend function from (plus any "mix-in" classes to simulate multiple inheritance).

    用于扩展函数(以及模拟多个继承的“混合)。

    youdao

  • Jscript does not support Class based inheritance, instead USES prototype based inheritance.

    Jscript支持传统意义上的继承取而代之是一利用prototype技术来实现(模拟)类的继承。

    youdao

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

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

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