• 第26 - 34行:函数

    Lines 26-34: Virtual functions.

    youdao

  • 函数简单地标准输出文本

    The virtual functions simply write a line of text to standard output.

    youdao

  • 第二进程只是引用数据成员函数

    The second time, the process simply references the data members and virtual functions.

    youdao

  • 函数所生成代码如列表1示。

    The code generated for the pure virtual function is shown in Listing 1.

    youdao

  • 函数实现动态多态性方法

    Virtual Function is the method to realize dynamic polymorphism.

    youdao

  • 有效地隐藏中的函数

    This effectively hides the virtual function in the base class.

    youdao

  • 是添加函数不是成员函数

    ADD Virtual function... not member function.

    youdao

  • 讨论示例程序只限于非静态数据成员函数

    The discussion and the sample program are limited to non-static data members and virtual functions.

    youdao

  • 为什么使用不能用于定义一个函数?。

    Why using cannot be used to define a virtual function?

    youdao

  • 派生可以函数

    Can derived class have two sets of virtual functions?

    youdao

  • 使用函数竣工迟绑定。

    You cregot lgot joining by using virtuwouls functions.

    youdao

  • 但是某些情况下可能使用函数

    In some situations however, the use of virtual functions is not possible.

    youdao

  • 文件函数所生成代码如列表2示。

    The code generated for the virtual function in a header file is shown in Listing 2.

    youdao

  • 派生继承函数多个重写

    The derived class inherits more than one override of a virtual function of a virtual base class.

    youdao

  • 这个例子性能函数表例子相同的。

    The performance of this sample and the pure vtable-based sample are exactly identical.

    youdao

  • 讨论派生处理私有函数方式更改

    Discusses changes in the way private virtual functions are handled in derived classes.

    youdao

  • 这个函数一个真正消息句柄不是函数

    This function is really a message handler, not a virtual function.

    youdao

  • 编译器用正确函数地址初始化这些虚函数

    The compiler initializes these tables with the correct function addresses.

    youdao

  • 首先应该知道什么函数以及如何使用

    Firstly, you should know what a virtual function is, and how to use it.

    youdao

  • 如果函数私有函数,则派生类型无法访问

    If a virtual function is private, it cannot be accessed by a derived type.

    youdao

  • 通过指针调用虚函数技术也是一样的。

    When you invoke calls through a pointer to the base class, the technique is the same.

    youdao

  • 这样使用函数对象每个实例占用4个额外的字节

    Thus an object that USES virtual functions occupies 4 additional bytes for each instance.

    youdao

  • 现在我米调用构造函数不是成员函数函数

    Now Im going to call virtual function from constructor of Base class rather than member function.

    youdao

  • 包含或者继承一个多个函数,这样的类就是抽象类。

    A class containing (or inheriting) one or more pure virtual functions is an abstract base class.

    youdao

  • 所谓函数应用程序以后需要但是目前还代码

    A virtual class or function is code that the application will eventually need, but it isn't written yet.

    youdao

  • 清单1定义了三个(Abc),它们共同函数whoami

    Listing 1 defines three classes (a, B and c) with a common virtual function WhoAmI .

    youdao

  • 使用函数时候,编译器自动根据对象实际类型选择正确的函数

    When we use virtual functions, the compiler automatically selects the right function according to the actual type of the object.

    youdao

  • 如果函数用作静态成员函数,则重命名函数以便函数冲突

    If the function was intended to be a static member function, rename it so it doesn't conflict with the base class virtual function.

    youdao

  • 使函数内联主要原因在于类定义,主要是方便的原因,比如说成员访问函数

    The main reason for making a virtual function inline is to place its definition in the class, either for convenience or to document its behavior, e. g., for accessors and mutators.

    youdao

  • 使函数内联主要原因在于类定义,主要是方便的原因,比如说成员访问函数

    The main reason for making a virtual function inline is to place its definition in the class, either for convenience or to document its behavior, e. g., for accessors and mutators.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定