derived class
派生类;衍生类别
2025-10-08 12:04 浏览次数 9
派生类;衍生类别
derived class detail继承类
for derived class为派生类的
derived class constructor派生类构造函数
derived class layout导出类的布局
of derived class派生类的
derived d class派生类
most derived class最末层衍生类别
and derived class和派生类
this derived class is also an authority service implementation that directs data and meta data requests to itself.
这个衍生而来的类同时也是一个可以把数据和元数据请求定向到自身的中心服务实现。
suppose you have a derived class d whose base class b has implemented some interfaces.
假设有个类型d,它的基类b实现了某些接口。
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).
派生类的大小等于基类加上派生实例定义的其他成员(以及对齐所必需的任何额外空间 —如前所述)的大小。
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.
一个抽象的类的一些编码被留给了编程人员,编程人员使用它在一个导出的类中执行,或者在一个导出的方面中执行。
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.
在继承中,派生类接受基类的成员变量和方法。这表示继承的顺序必须在对象构造的时候被遵守。
the functionality of this method is unsupported in the base class and must be implemented in a derived class instead.
此方法的功能在基类中不受支持,而必须在派生类中实现。
the primary constructor in a derived class must invoke one of the parent class constructors, either the primary constructor or an auxiliary constructor.
子类的主构造函数必须调用父类的一个构造函数,无论是主构造函数或者是辅助构造函数。
since both the base class and derived class have the same interface, there must be some implementation to go along with that interface.
因为基类和衍生类拥有相同的接口,因此这个接口必须要有必要的实现。
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.
当然,如果一种语言不支持继承就,「类」就没有什么意义。派生类的定义如下所示。
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.
因为我们可以通过能给类发送的消息知道这个类,所以这意味着衍生类和基类属于同种类型。
c++: bad form to call base class asssignment operator in derived class constructor?
在派生类的构造函数调用基类指派算子不好?
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的扩展是从类或者子类衍生出来的,为支持现有extjs类包含附加特性而设计的。
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参数化。
create a derived class inherited from the predefined grammar class.
创建一个从预定义grammar类继承而来的派生类。
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(可以不修改此名)的嵌套的模板类/结构。
override verifies for javac that a method introduced in a derived class has, in fact, overridden a base class method.
@override验证引入继承类的方法实际上已经覆盖了基类方法。
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引入了一个新的派生类,这个类和目前涉及到的其他类都在同一个包中。