go top

virtual function

  • 虚拟函数:在面向对象编程中,虚拟函数是一种可以在派生类中被重写的成员函数。它允许派生类根据需要提供自己的实现,从而实现多态性。

专业释义英英释义

  • 虚函数 - 引用次数:14

    With the polymorphism in object oriented programming language, the abstract operation is expressed by the virtual function. In this way, the designed class can be used as a reusable software component.

    利用面向对象程序设计语言中的多态性等机制,将抽象操作用虚函数表示,如此设计的类可以作为可重用部件使用。

    参考来源 - 算法形式化推导及其在软件重用中的应用 in C
    虚拟函式
  • 实质功能 - 引用次数:1

    参考来源 - 正确认识宪法的实质功能

·2,447,543篇论文数据,部分数据来源于NoteExpress

Virtual function

  • abstract: In object-oriented programming, a virtual function or virtual method is a function or method whose behavior can be overridden within an inheriting class by a function with the same signature. This concept is a very important part of the polymorphism portion of object-oriented programming (OOP).

以上来源于: WordNet

双语例句权威例句

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

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