A derived-class member with the same name as a member of the base class hides direct access to the base-class member.
当派生类的成员和基类成员名字相同时,派生类的成员屏蔽了对基类此成员的直接访问。
If the base member took different arguments than the derived-class member, there would be no way to call the derived function from a reference or pointer to the base type.
如果基类成员与派生类成员接受的实参不同,就没有办法通过基类类型的引用或指针调用派生类函数。
Founder mutations are a class of disease-causing genetic mutations, each derived from its own ancestral "founder" in whom the mutation originated.
创始者突变是一类引起疾病的基因突变,每一种都源自其自身祖先的“创始者”。
Setting them again for each derived class is a waste, since they would be available anyway by inheritance.
为每个派生类再次设置这些属性是一种浪费,因为通过继承它们就会拥有这些属性。
This derived class is also an Authority Service implementation that directs data and meta data requests to itself.
这个衍生而来的类同时也是一个可以把数据和元数据请求定向到自身的中心服务实现。
Marking the base class as "private" allowed the derived class to inherit from it without actually becoming one of them.
将基类标记为 “私有”允许派生类从该基类继承而来,而无需实际成为 一个基类。
This is similar to an abstract class where some of the code is left to the programmer to implement in a derived class -- or, in this case, a derived aspect.
一个抽象的类的一些编码被留给了编程人员,编程人员使用它在一个导出的类中执行,或者在一个导出的方面中执行。
A child (or derived) class can have one and only one parent (or base) class.
一个子(或继承的)类只可以有一个父类(基类)。
The size of a derived class is the size of the base class plus the additional members defined by a derived instance (and any extra space required for alignment, as discussed earlier).
派生类的大小等于基类加上派生实例定义的其他成员(以及对齐所必需的任何额外空间 —如前所述)的大小。
Suppose you have a derived class D whose base class B has implemented some interfaces.
假设有个类型D,它的基类B实现了某些接口。
Create a derived class inherited from the predefined grammar class.
创建一个从预定义grammar类继承而来的派生类。
I just introduce a new derived class to Person, which is of the same package as the other classes thus far. Not surprisingly, I'll call this class Employee, shown in Listing 2.
我只是向Person引入了一个新的派生类,这个类和目前涉及到的其他类都在同一个包中。
The derived class that you design must have a nested template class/structure named definition (you may not change this name). The definition class has the following properties
您设计的派生类必须有一个名为definition(可以不修改此名)的嵌套的模板类/结构。
The grammar class is a template class that is parameterized by its derived class DerivedT and the context class ContextT. The declaration for the grammar class is as follows.
grammar类是一个模板类,被其派生类DerivedT和上下文类ContextT参数化。
The primary constructor in a derived class must invoke one of the parent class constructors, either the primary constructor or an auxiliary constructor.
子类的主构造函数必须调用父类的一个构造函数,无论是主构造函数或者是辅助构造函数。
You can now view attributes, operations, flow ports and ports inherited from super blocks on block definition and internal block diagrams and features dialog of the derived class.
现在您可以从块定义和内部块图以及特性对话框的上层快中,查看属性、操作、流程图。
Since both the base class and derived class have the same interface, there must be some implementation to go along with that interface.
因为基类和衍生类拥有相同的接口,因此这个接口必须要有必要的实现。
An extension for ext JS is a derived class or a subclass, which is designed to allow the inclusion of additional features to existing ext JS classes.
ExtJS的扩展是从类或者子类衍生出来的,为支持现有Ext JS类包含附加特性而设计的。
Since we know the type of a class by the messages we can send to it, this means that the derived class is the same type as the base class.
因为我们可以通过能给类发送的消息知道这个类,所以这意味着衍生类和基类属于同种类型。
Dynamic casts are needed when we have a reference or pointer to a base class but need to perform operations from the derived class that are not part of the base class.
当具有基类的引用或指针,但需要执行不是基类组成部分的派生类操作的时候,需要动态的强制类型转换。
Since this interface is tied directly to the toolbox, it's handy to just implement this interface in the TreeView-derived class.
由于该接口被直接绑定到工具箱,所以在派生自TreeView的类中实现该接口十分方便。
I have a base class. How do I call the right method for the right derived class?
我有一个基类。我怎么叫正确的派生类的正确方法?
When overridden in a derived class, gets the value indicating whether this group is the default group.
在派生类中重写后,获取一个值,该值指示组是否是默认组。
But you'll find that there are times when it's equally clear that you must add new functions to the interface of a derived class.
但是你也会发现有时候你很明显的必须去给衍生类增加新的方法。
In inheritance, the derived class receives the base class member variables and methods. This means that an order of inheritance must be followed during the construction of an object.
在继承中,派生类接受基类的成员变量和方法。这表示继承的顺序必须在对象构造的时候被遵守。
There is no automatic conversion from the base class to a derived class.
从基类到派生类的自动转换是不存在的。
When the function is called through a derived object, the arguments must match a version of the function defined in the derived class.
当调用派生对象的函数时,实参必须和派生类中函数定义相互匹配。
How do I write the move assignment function for this derived class?
我怎样为这个派生类编写移动赋值函数?
When overridden in a derived class, sets the encoder back to its initial state.
在派生类中重写时,将编码器设置回它的初始状态。
If you shadow the same base class element with more than one element in your derived class, the shadowing elements become overloaded versions of that element.
如果用派生类中的多个元素隐藏同一个基类元素,隐藏元素将变为该元素的重载版本。
应用推荐