The virtual functions simply write a line of text to standard output.
虚函数简单地向标准输出写一行文本。
The second time, the process simply references the data members and virtual functions.
第二次,进程只是引用数据成员和虚函数。
The discussion and the sample program are limited to non-static data members and virtual functions.
讨论和示例程序都只限于非静态数据成员和虚函数。
First, the Vee-Table pointer is used to access virtual functions, and data members are accessed directly using compile time offsets.
首先,Vee -Table指针用于访问虚函数,而对数据成员的访问直接使用编译时偏移量实现。
Can derived class have two sets of virtual functions?
派生类可以有两套虚函数?
In some situations however, the use of virtual functions is not possible.
但是,在某些情况下,不可能使用虚函数。
Discusses changes in the way private virtual functions are handled in derived classes.
讨论在派生类中处理私有虚函数的方式的更改。
Thus an object that USES virtual functions occupies 4 additional bytes for each instance.
这样,使用虚函数的对象每个实例占用4个额外的字节。
A class containing (or inheriting) one or more pure virtual functions is an abstract base class.
类包含或者继承一个或多个纯虚函数,这样的类就是抽象基类。
When we use virtual functions, the compiler automatically selects the right function according to the actual type of the object.
当使用虚函数的时候,编译器自动根据对象的实际类型选择正确的函数。
The RTTI operators execute at run time for classes with virtual functions, but are evaluated at compile time for all other types.
对于带虚函数的类,在运行时执行rtti操作符,但对于其他类型,在编译时计算rtti操作符。
We might think we could solve this problem by defining a set of virtual functions that would perform the equality test at each level in the hierarchy.
也许我们认为可以通过定义一个虚函数集合来解决这个问题,这些虚函数可以在类层次中每一层执行相等测试。
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.
在基类中可以通过将虚函数声明为纯虚函数的手段来定义抽象类,强制派生类在自己的类定义中实现虚函数的具体功能。
Member template functions cannot be virtual functions and cannot override virtual functions from a base class when they are declared with the same name as a base class virtual function.
当使用与基类虚函数相同的名称进行声明时,成员模板函数不能是虚函数并且不能从基类重写虚函数。
These operators return dynamic type information only for classes with one or more virtual functions. For all other types, information for the static (i. e. , compile-time) type is returned.
这些操作符只为带有一个或多个虚函数的类返回动态类型信息,对于其他类型,返回静态(即编译时)类型的信息。
This paper is intended to address issues pertaining to an over-emphasis on creating artificial roadside views but ignoring the virtual functions of the facilities while constructing urban highways.
针对目前城市道路景观建设过程中过分强调人 工化的景观环境、忽视道路实际功能的问题进行研究。
Lines 26-34: Virtual functions.
第26 - 34行:虚函数。
Lines 26-34: Virtual functions.
第26 - 34行:虚函数。
应用推荐