如果虚拟表是在编译时创建的,那么为什么将其称为运行时多态呢? [英] If virtual table is created in compile time, then why do we call this as a run time polymorphism?
本文介绍了如果虚拟表是在编译时创建的,那么为什么将其称为运行时多态呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
由于虚拟表是在编译时创建的,那么为什么在c ++中将其称为运行时多态呢?
As virtual table is created in compile time, then why do we call this as run time polymorphism in c++?
推荐答案
因为查找发生在运行时。
Because the lookup happens at runtime.
这篇关于如果虚拟表是在编译时创建的,那么为什么将其称为运行时多态呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文