网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 Virtual function
释义

Virtual function

英语例句库

Not only does it slow down the program due to the virtual function indirect call, it is also an opaque wall where no metaprogram can get past.

它不仅因为虚拟函数的间接调用降低了程序的速度,它还是一堵不透明的墙,元编程无法穿过它。

中文百科

虚函数 (进程语言)

类别 Animal 的区块图

虚函数是面向对象进程设计中的一个重要的概念。只能适用于指标和参考的计算机工程运算。当从父类中继承的时候,虚函数和被继承的函数具有相同的签名。但是在运行过程中,运行系统将根据对象的zh:型别,自动地选择适当的具体实现运行。虚函数是面向对象编程实现多态的基本手段。

虚函数在设计模式方面扮演重要角色。例如,《设计模式》一书中提到的23种设计模式中,仅5个对象创建模式就有4个用到了虚函数(抽象工厂、工厂方法、生成器、原型),只有单体没有用到。

英语百科

Virtual function 虚函数 (程序语言)

Class Diagram of Animal

In object-oriented programming, a virtual function or virtual method is an inheritable and overridable function or method for which dynamic dispatch is facilitated. This concept is an important part of the (runtime) polymorphism portion of object-oriented programming (OOP).

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/19 2:46:44