PHP also gives you the get_called_class, which you will use heavily because many of the design patterns you'll implement require the class name of derived classes.
PHP还提供了get _ called _ class供您大量使用,因为您要实现的设计模式常常会需要衍生类的类名。
Founder mutations are a class of disease-causing genetic mutations, each derived from its own ancestral "founder" in whom the mutation originated.
创始者突变是一类引起疾病的基因突变,每一种都源自其自身祖先的“创始者”。
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.
抽象类的另一个用途是为多个派生类创建一个基类,在这些派生类中,基类决不会被实例化。
To use an extension, you directly create an object of the extension subclass, which can then use, add, or override features to the parent class it is derived from.
要使用一个扩展,您应该直接创建一个扩展子类对象,然后使用、添加、或者重写特性到父类(它从其中衍生的)。
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.
一个抽象的类的一些编码被留给了编程人员,编程人员使用它在一个导出的类中执行,或者在一个导出的方面中执行。
Marking the base class as "private" allowed the derived class to inherit from it without actually becoming one of them.
将基类标记为 “私有”允许派生类从该基类继承而来,而无需实际成为 一个基类。
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).
派生类的大小等于基类加上派生实例定义的其他成员(以及对齐所必需的任何额外空间 —如前所述)的大小。
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.
很多情况下,类中包含一个核心数据元素,通过它可以派生或找到类中的其他字段。
You create a class derived from org.eclipse.jdt.core.dom.ASTVisitor and pass an instance of it to node's method accept .
然后创建一个从or g . eclipse . jdt . core . dom . ASTVisitor派生的类,将该类的实例传递给节点方法accept 。
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引入了一个新的派生类,这个类和目前涉及到的其他类都在同一个包中。
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)的基础。
PeriodicThread is the base class from which worker threads in the set of cooperating threads must be derived.
PeriodicThread是基类,从它派生出协作线程组中的worker线程。
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.
因为表类的名称源于应用处理程序的名称,所以这并不太难。
The derived classes have the same dynamic class attributes of the base class.
派生类具有跟基类相同的动态类属性。
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.
现在您可以从块定义和内部块图以及特性对话框的上层快中,查看属性、操作、流程图。
Is a class (or struct) that implements a more-derived interface also required to state in its base type list that it is implementing all of those less-derived interfaces?
一个实现了派生程度较高的接口的class或者struct必须要在其基类型列表中声明它实现了那些派生程度较低的接口吗?
All derived entity classes and the session class inherit the common code of the create and find methods from the BOBase class.
所有派生实体类和会话类都继承了bobase类中create和find方法的公共代码。
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 parts of Person that are stored in Employee aren't "sliced off," as can happen in a regular SQL query that fails to join every derived subclass table in a table-per-class model.
存储在Employee中的Person的各部分不会被“切掉”,而当定期SQL查询未能成功地将派生子类表加入到table - per - class模型中时,这种被“切掉”的现象就会发生。
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.
当具有基类的引用或指针,但需要执行不是基类组成部分的派生类操作的时候,需要动态的强制类型转换。
The next section of code is where the actual test class (derived from our CustomerManagerContext above) implements the auxiliary and test methods.
下面一部分代码是实际的测试类(继承了上面的CustomerManagerContext类),实现了一些辅助方法和测试方法。
When we construct, copy, assign, or destroy an object of derived type, we also construct, copy, assign, or destroy those base-class subobjects.
当构造、拷贝、赋值或撤销一个派生类对象时,也要构造、拷贝、赋值或撤销那些基类的子对象。
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.
但是你也会发现有时候你很明显的必须去给衍生类增加新的方法。
The functionality of this method is unsupported in the base class and must be implemented in a derived class instead.
此方法的功能在基类中不受支持,而必须在派生类中实现。
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.
如果用派生类中的多个元素隐藏同一个基类元素,隐藏元素将变为该元素的重载版本。
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.
如果用派生类中的多个元素隐藏同一个基类元素,隐藏元素将变为该元素的重载版本。
应用推荐