inheritance hierarchy是什么意思,inheritance hierarchy的意思翻译、用法、同义词、例句
常用词典
继承层次;继承体系;继承阶层架构
例句
The root class of an inheritance hierarchy should define a virtual destructor even if the destructor has no work to do.
继承层次关系的根类应该定义虚函数性质的析构函数,即使这个析构函数不做任何的事情。
A global aspect utilizing a signature pattern based on packages and the inheritance hierarchy would serve you better in this situation.
在这种情况下,利用基于包和继承层次结构的签名模式的全局方面可以做得更好。
That's because objects in the real world just don't fit into a simple single inheritance hierarchy.
那是因为实际世界中的对象不会刚好适合一个简单的单继承层次结构。
At the top of Listing 4, you see a nested module definition. A module has method definitions, but no base inheritance hierarchy.
在 清单 4 的顶部,可以看到一个嵌套的模块定义,但是没有基继承层次结构。
If you would like to rename this method, a check of all classes in the inheritance hierarchy is needed to find all positions in the code which should be changed.
如果你要重命名这个方法,必须检查继承层次中的所有类,以找到应该做出改变的所有位置。
Instead, we'd either have to copy code along multiple paths in the inheritance hierarchy or employ the Strategy pattern (or some other trick using containment) to avoid copying code.
另一种方法是,我们要么必须沿着继承层次结构中的多条路径复制代码,要么使用策略模式(或其它使用限制的一些诀窍)来避免复制代码。
An inheritance hierarchy is a way of organizing a set of abstractions from most general to least general.
继承的层次是从最多到最少的概要(共性)中构建一组抽象的方法。
If you have an inheritance hierarchy that is too broad, inheritance will break down.
如果已有的继承等级非常宽,继承就会失效。
The assertion fails if there exists one element in the collection for which the specified type is not found in its inheritance hierarchy.
判断提示失败,如果那里存在的集合中之指定的型别中找不到其继承阶层架构中的一个项目。
Finalization must be propagated through the inheritance hierarchy.
终止必须通过继承层次结构传播。
Gets the name of the management class in which the method was first introduced in the class inheritance hierarchy.
获取管理类的名称,在该类中第一次将该方法引入到类的继承层次结构。
The assertion fails if the type is found in the inheritance hierarchy of the object.
如果此型别位于物件的继承阶层架构内,判断提示就会失败。
Classes in the same inheritance hierarchy typically belong in the same package.
一般位于同一继承层次上的类也属于同一个包。
The Template Method pattern suggests that I should move common boilerplate code up the inheritance hierarchy, deferring algorithmic details to child classes.
TemplateMethod模式建议,应当将公共模板代码移到继承层次结构之上,将算法细节推迟到子类。
Knowledge base is based on Common Information Model (CIM): reasoning rules in Knowledge base have inheritance hierarchy, just as device classes in CIM do;
知识库充分结合国际标准的CIM模型,依照CIM模型中的设备继承层次结构,建立推理规则的层次结构;
The standard MBeans convention would make the interfaces depend on the implementations and represents a needless duplication of the inheritance hierarchy for this system.
标准MBean 的约定使得接口依赖于实现,而且代表这个系统的继承层次出现不必要的重复。
A class's members include all the members declared in the class, along with all members (except constructors and destructors) declared in all classes in its inheritance hierarchy.
类的成员包括在类中声明的所有成员,以及在该类的继承层次结构中的所有类中声明的所有成员(构造函数和析构函数除外)。
Conceptually, we can think of the inheritance hierarchy as defining a search technique for methods and variables.
理论上,我们认为继承阶层是作为定义方法和可变物质的一个查寻技术。
To understand why, we need to look a little closer as to what exactly is necessary to support adding methods and fields (and even more advanced, changing the inheritance hierarchy).
为了理解这其中的原因,我们需要稍微靠近一点看一看,到底是需要用什么来支持方法和域的添加操作(甚至更深入一些,修改继承的层次结构)。
We need two new Classes at either end of the inheritance hierarchy to do this.
在继承层次的每个端点,我们需要两个新类来完成这个。
Traditional object-oriented programming, especially in languages like Python that allow multiple inheritance, attempt to modularize concerns with an inheritance hierarchy.
传统的面向对象编程,尤其是在诸如Python之类允许多重继承的语言中,都会试图使用一个继承层次结构来模块化关注事项。
Listing 4 shows how you might use the declare parents tag to change Foo's inheritance hierarchy.
清单4显示了用declareparents标签来改变Foo的继承层次。
However, this would make test case classes difficult to reuse between test types, because the test type decision is made near the root of the inheritance hierarchy;
但是,这会使测试环境类在测试类型中难以再利用,因为测试类型的决定是在靠近继承层次的根部作出的;
Just look at the Java class hierarchy to see an elaborate set of object inheritance hierarchy.
仅仅查看Java类就可以看到一组精巧的对象继承层次结构。
In other words, a complete inheritance hierarchy is stored in a single database table.
换言之,整个继承层次结构存储在单个数据库表中。
A constructor for the base class is always called during the construction process for a derived class, chaining up the inheritance hierarchy so that a constructor for every base class is called.
一个基类的构造方法在它的派生类的对象创建过程中是会被调用的,根据继承关系图一层层追溯,所有基类的构造方法都会被调用的。
网络扩展资料
继承
继承(inheritance) 指的是一个类(或对象)获取另一个类(或对象)的属性和方法的机制。继承是面向对象编程(Object-Oriented Programming)中的一个重要概念,它允许代码共享和重用,提高了代码的可维护性和可扩展性。
例句
- The child class inherits the properties and methods of the parent class. (子类继承了父类的属性和方法。)
- The employee inherits the benefits of the company. (员工享受公司的福利。)
用法
使用继承可以避免重复编写相同的代码,提高代码重用性。在继承关系中,父类(也叫超类或基类)是被继承者,子类(也叫派生类)是继承者。子类可以继承父类的公有属性和方法,也可以重写父类的方法和属性,实现自己的特定需求。
近义词
- 继承(inheritance)和派生(derivation)是同义词。
反义词
- 封装(encapsulation)和多态(polymorphism)是继承的反义词,它们是面向对象编程的基本概念。
层次结构
层次结构(hierarchy) 指的是根据某种关系进行分类的一种数据结构。层次结构中的元素分层排列,每一层都有相同的特征,而且在同一层级上的元素之间有关联。层次结构一般采用树形结构表示,树的顶部是根节点,树的底部是叶子节点。
例句
- The company's management hierarchy includes CEO, directors, managers, and employees. (公司的管理层次结构包括CEO、董事、经理和员工。)
- The animal hierarchy is divided into mammals, birds, reptiles, and fish. (动物层次结构分为哺乳动物、鸟类、爬行动物和鱼类。)
用法
层次结构可以方便地组织和管理数据,减少数据重复和冗余。在现实生活和计算机科学中都有广泛的应用,如文件系统、组织结构、分类学等等。
近义词
- 层级(level)、等级(rank)和分级(gradation)是层次结构的近义词。
反义词
- 平行结构(parallel structure)和扁平结构(flat structure)是层次结构的反义词,它们表示没有明显的层级关系。
英语单词大全 请记住链接:https://danci.yuesha.com/inheritance+hierarchy.html