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.
如果基类成员与派生类成员接受的实参不同,就没有办法通过基类类型的引用或指针调用派生类函数。
Setting them again for each derived class is a waste, since they would be available anyway by inheritance.
为每个派生类再次设置这些属性是一种浪费,因为通过继承它们就会拥有这些属性。
Classes can be derived from only a single class, but they can implement multiple interfaces.
类只可以从一个单一的类派生,但它们可以实现多个接口。
PeriodicThread is the base class from which worker threads in the set of cooperating threads must be derived.
PeriodicThread是基类,从它派生出协作线程组中的worker线程。
In this scheme, objects are represented by Pointers, and GtkWidget is the basic type — called a class — in the GTK + hierarchy from which all other classes are derived.
在这个方案中,对象由指针代表,而GtkWidget是GTK +层次结构中的基本类型——叫做类,其他类都从它派生而来。
From time to time, a class contains a core element of data from which the rest of the class's fields can be derived or retrieved.
很多情况下,类中包含一个核心数据元素,通过它可以派生或找到类中的其他字段。
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引入了一个新的派生类,这个类和目前涉及到的其他类都在同一个包中。
Since both the base class and derived class have the same interface, there must be some implementation to go along with that interface.
因为基类和衍生类拥有相同的接口,因此这个接口必须要有必要的实现。
As a result, you can exactly substitute an object of the derived class for an object of the 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).
派生类的大小等于基类加上派生实例定义的其他成员(以及对齐所必需的任何额外空间 —如前所述)的大小。
The service endpoint implementation class is derived from the service endpoint interface.
服务端点实现类型是由服务端点接口派生出来的。
Another use of abstract classes is to create a single base class for multiple derived classes in which that base class should never be instantiated.
抽象类的另一个用途是为多个派生类创建一个基类,在这些派生类中,基类决不会被实例化。
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.
当具有基类的引用或指针,但需要执行不是基类组成部分的派生类操作的时候,需要动态的强制类型转换。
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参数化。
When overridden in a derived class, gets the value indicating whether this group is the default group.
在派生类中重写后,获取一个值,该值指示组是否是默认组。
The basic rules of the JVM are still at work: derived classes of Person have to pass something up to the base class when constructed, regardless of what the language insists.
JVM的基本规则依然有效:Person的继承类在构造时向基类传递某些内容,而不管语言强调的是什么。
Since the name of the table class is derived from the name of the application handler, this is not too difficult.
因为表类的名称源于应用处理程序的名称,所以这并不太难。
When overridden in a derived class, sets the encoder back to its initial state.
在派生类中重写时,将编码器设置回它的初始状态。
The run method on this class is final so that derived classes cannot use it to specify their logic. Instead, you should override the following method so that it contains the logic for the thread.
此类的run方法是final类型,因此派生类不能使用它指定自己的逻辑。
The derived classes have the same dynamic class attributes of the base 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.
在继承中,派生类接受基类的成员变量和方法。这表示继承的顺序必须在对象构造的时候被遵守。
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.
如果用派生类中的多个元素隐藏同一个基类元素,隐藏元素将变为该元素的重载版本。
The functionality of this method is unsupported in the base class and must be implemented in a derived class instead.
此方法的功能在基类中不受支持,而必须在派生类中实现。
A holder class is a LotusScript class object derived from the INOUT_HOLDER class (as defined in lsxsd.lss).
holder类是一个派生自inout _ holder类的LotusScript类对象(如lsxsd . lss中定义的那样)。
Derived classes are not required to re-state that they implement an interface from their base class, but are permitted to do so. (This case is special; see below for more details.)
派生类可以指明它实现了其基类的接口,但是并不是一定要这么做。
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类包含附加特性而设计的。
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类包含附加特性而设计的。
应用推荐