• 第26 - 34行:函数

    Lines 26-34: Virtual functions.

    youdao

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

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

    youdao

  • 有效地隐藏中的函数

    This effectively hides the virtual function in the base class.

    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

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

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

    youdao

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

    The compiler initializes these tables with the correct function addresses.

    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

  • 发出错误信息如果有人试图构建一个明确对象调用函数

    The error message is issued if someone tries to explicitly construct an object or call a virtual function.

    youdao

  • 函数定义中的函数同名参数数目类型不同。

    A class function definition has the same name as a virtual function in a base class but not the same number or type of arguments.

    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 root class of an inheritance hierarchy should define a virtual destructor even if the destructor has no work to do.

    youdao

  • 客户端服务器重要部分函数NotifyReceivedPackage,定义如下

    The most important part of the client or server code is the virtual function NotifyReceivedPackage, as described below.

    youdao

  • 使用动态强制类型转换小心只要有可能定义使用函数直接接管类型管理

    Dynamic casts should be used with caution. Whenever possible, it is much better to define and use a virtual function rather than to take over managing the types directly.

    youdao

  • 对象多重继承自多个,每个基都有函数,那么子类对象内存布局是什么样的?

    A function that is virtual in a base class is implicitly virtual in its derived classes. When a derived class overrides a virtual, the parameters in the base and derived classes must match exactly.

    youdao

  • 首先,Vee -Table指针用于访问函数对数据成员访问直接使用编译偏移量实现

    First, the Vee-Table pointer is used to access virtual functions, and data members are accessed directly using compile time offsets.

    youdao

  • 课程主要内容包括对象关联聚合继承虚函数多态性综合设计相关实验

    This course mainly covers classes and objects, association and aggregation, inheritance, polymorphism, comprehensive design and other related experiments.

    youdao

  • 课程主要内容包括对象关联聚合继承虚函数多态性综合设计相关实验

    This course mainly covers classes and objects, association and aggregation, inheritance, polymorphism, comprehensive design and other related experiments.

    youdao

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

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

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