Setting them again for each derived class is a waste, since they would be available anyway by inheritance.
为每个派生类再次设置这些属性是一种浪费,因为通过继承它们就会拥有这些属性。
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.
抽象类的另一个用途是为多个派生类创建一个基类,在这些派生类中,基类决不会被实例化。
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).
派生类的大小等于基类加上派生实例定义的其他成员(以及对齐所必需的任何额外空间 —如前所述)的大小。
It also defines a Struct class for defining arbitrary data aggregations, and the special class any which can be used to represent any built-in or derived type and thus is the basis of dynamic typing.
它还定义了一个struct类,用来定义任意的数据聚合,此外,还定义了特殊的类any,它可以用来表示任何内置或导出类型,因而它也就成了动态类型化(dynamic typing)的基础。
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.)
派生类可以指明它实现了其基类的接口,但是并不是一定要这么做。
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参数化。
For details on how each instance variable is computed, you can look at the constructor method for the class where all these values are derived.
关于如何计算每个实例变量的详细信息,可以查阅该类的构造函数方法,所有这些值都源自那里。
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类包含附加特性而设计的。
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类型,因此派生类不能使用它指定自己的逻辑。
I have a base class. How do I call the right method for the right derived class?
我有一个基类。我怎么叫正确的派生类的正确方法?
Often in a design, you want the base class to present only an interface for its derived classes.
经常在设计过程中,你想要基础类只把接口提供给衍生类。
How do I write the move assignment function for this derived class?
我怎样为这个派生类编写移动赋值函数?
As a result, you can exactly substitute an object of the derived class for an object of the base class.
结果是你可以用衍生类的对象替代基类的对象。
A method of sliding mode control based on fuzzy logic, for a class of linear uncertain system shown in phase coordinate, is presented It if derived from the principle of sliding mode control.
本文针对一类相坐标表示的线性不确定系统,根据滑模控制原理,提出一种基于模糊逻辑的滑模控制方法。
What is the right way for an object to have a collection of a QObject derived class?
一个对象有一个派生类,一个好的正确的方式是什么?
Base class for all transient classes. All user-defined transient classes must derived from this class.
所有暂时类别的基本类别。所有用户定义的暂时类别都必须是从此类别派生出来的。
If a class method is called for a derived class, the derived class object is passed as the implied first argument.
如一个类方法被派生类调用,派生类对象将被隐含的做为第一个参数传递。
Of course, a language feature would not be worthy of the name 'class' without supporting inheritance. The syntax for a derived class definition looks as follows.
当然,如果一种语言不支持继承就,“类”就没有什么意义。派生类的定义如下所示。
When overridden in a derived class, gets the hash code for the specified object.
当在派生类中重写时,将获取指定对象的哈希代码。
After metadata for a particular derived class override is established with this method, subsequent attempts to override metadata on this same derived class will raise an exception.
使用这个方法覆写特定衍生类别的中继资料后,若再尝试覆写此相同衍生类别的中继资料,将会引发例外状况。
Moreover, as class density estimates cannot be derived for such a training set, class posterior probabilities cannot be estimated.
更进一步地,因种类分布密度无法从那样的训练集中进行估计,种类的后验概率也无法被估计出来。
If they are redefined in a derived class, it is impossible for the derived class to call the base class implementation.
如果在派生类中重新定义成员,则派生类不能调用基类实现。
Execution of a derived class definition proceeds the same as for a base class.
派生类定义的执行过程和基类是一样的。
A sufficient condition guaranteeing the global asymptotical stability of the equilibrium point is derived for a class of neural network models with variable delay and neutral type delay.
摘要针对一类能够由中立型变延迟非线性微分方程描述的神经网络模型,给出了全局渐近稳定的不依赖于时间延迟的充分条件。
This negates the virtual aspect of the member for any further derived class.
在用于以后的派生类时,这将取消成员的虚效果。
All methods in the derived class, including the constructor for the class, must meet the inheritance demand.
派生类中的所有方法(包括类的构造函数)都必须满足该继承要求。
This is the preferred technique for handling the event in a derived class.
这是在衍生类别中处理事件的惯用技术。
This is the preferred technique for handling the event in a derived class.
这是在衍生类别中处理事件的惯用技术。
应用推荐