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.
它不仅因为虚拟函数的间接调用降低了程序的速度,它还是一堵不透明的墙,元编程无法穿过它。
单词 | Virtual functions |
释义 |
Virtual functions
英语例句库
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. 它不仅因为虚拟函数的间接调用降低了程序的速度,它还是一堵不透明的墙,元编程无法穿过它。
中文百科
虚函数 (进程语言) Virtual function(重定向自Virtual functions)
![]() 虚函数是面向对象进程设计中的一个重要的概念。只能适用于指标和参考的计算机工程运算。当从父类中继承的时候,虚函数和被继承的函数具有相同的签名。但是在运行过程中,运行系统将根据对象的zh:型别,自动地选择适当的具体实现运行。虚函数是面向对象编程实现多态的基本手段。 虚函数在设计模式方面扮演重要角色。例如,《设计模式》一书中提到的23种设计模式中,仅5个对象创建模式就有4个用到了虚函数(抽象工厂、工厂方法、生成器、原型),只有单体没有用到。
英语百科
Virtual function 虚函数 (程序语言)(重定向自Virtual functions)
![]() 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条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。