Even in this situation, using abstract base classes can be advantageous.
在这样的情况下,使用抽象基类也有巨大的优越性。
Abstract base classes are quite elegant to encapsulate calling conventions.
抽象基类很优雅的封装调用请求。
To do so, developers would need to manually implement the provided interfaces and extend the abstract base classes.
要想这样做,开发人员需要手动地实现所提供的接口,并且扩展抽象基础类。
Data categories are like abstract base classes; a category might be able to represent all models of car, for instance.
数据类别类似于抽象基类,比如,一个类别可以表示所有的汽车型号。
It is even more beneficial to apply the technique of abstract base classes to the scenario of binary packaging in DLLs.
把抽象基类技术应用到DLL里的二进制包情况下也是有益的。
This function allows a client to ask the object for different pointers to itself that also point to different abstract base classes (also known as interfaces).
这个函数允许客户端请求对象提供关于自己的其它方面的指针,这个新指针同样指向不同的虚基类(也叫做接口)。
Remember that pure abstract base classes provide little more than a table of function entry points, and the entry points are allocated by the compiler of the object.
记住纯抽象基类只是提供了函数入口点的表,入口点是由编译器分配的。
The view segments of the pipeline are abstract base classes or interfaces that provide the host and the add-in with a view of the methods that they share, as defined by the contract.
管线的检视区段为抽象基底类别或介面,可根据合约的内容,为主应用程序和增益集提供其共用的方法检视。
It also allows you to build an abstract implementation that defers the actual implementation to classes that override the base.
它还允许您构建一个抽象实现,从而使实际实现委托给覆盖基本实现的类。
In XML schemas you can use abstract classes or just tags specifying extensions or derivations of base types.
在XML模式中,可以使用抽象类或仅使用指定基类型扩展或派生的标记来做到这一点。
Another helpful addition to PHP V5 is the abstract class, which makes it easy to have one base class to implement the core of an interface from which you then create concrete classes.
PHPV 5中另一个有帮助的新功能是抽象类,使用抽象类可以轻松地用一个基类实现接口的核心部分,然后用该接口创建实体类。
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 base abstract classes consist of the following.
基本抽象类由以下内容组成。
The Template Method pattern defines the skeleton of an algorithm in a base class, using abstract methods and overriding to defer individual details to child classes.
TemplateMethod模式定义了基类算法的骨架,使用了抽象方法和覆盖将具体细节放到子类中。
The TypeDescription class is just an abstract base class with methods defined for dealing with three kinds of types: primitives, arrays, and instances of classes.
TypeDescription类只是个抽象基类,其中定义了处理三种类型的方法:原生类型、数组和类实例。
The main advantage in using interfaces is that classes can implement more than one of them, as opposed to being able to derive from a single base class (abstract or otherwise).
使用接口的主要优点是可以实现的类不止一个,而这些类不能从一个单一的基类派生(抽象或相反)。
We may not create objects of an abstract type except as parts of objects of classes derived from the abstract base.
除了作为抽象类的派生类对象的一部分,是不能够生成抽象基类对象的。
In a base class, abstract class is defined by declaring pure virtual function, a derived class must define all inherited pure virtual functions of its base classes to be concrete.
在基类中可以通过将虚函数声明为纯虚函数的手段来定义抽象类,强制派生类在自己的类定义中实现虚函数的具体功能。
There are no base classes to extend from, the classes are concrete (not abstract), and there's no XML file.
不在需要继承基类。类就是具体的类(没有抽象)也没有XML文件。
All abstract classes must be base classes.
所有的抽象类都应当是基类。
If your child classes have the common functionality then why you will override the method in every class? You can use the base class (which is abstract in this case) method.
如果你的孩子班的通用功能,那你为什么会覆盖在每一个类的方法?您可以使用基类(本例中是抽象的)的方法。
The library will contain two base classes declared as abstract (they can't be instantiated), but I will use them as base classes for building application-specific classes through inheritance.
该类库将包含两个基类宣布为抽象的(它们不能被实例化) ,但我会利用这些基类,用于继承。
If I have a pointer to an object cast to one of its base classes, I can call the correct member functions through the abstract base class.
如果我有一个对象的指针,转换到它的基类指针对象上,我能通过基类指针调用合适的成员函数。
If I have a pointer to an object cast to one of its base classes, I can call the correct member functions through the abstract base class.
如果我有一个对象的指针,转换到它的基类指针对象上,我能通过基类指针调用合适的成员函数。
应用推荐