多继承对象的虚函数表

子对象多重继承自多个基类,每个基类都有虚函数,那么子类对象的内存布局是什么样的?有一个虚函数表还是多个?   示例程序: 1 #include "iostream" 2 #include "string" 3 #include <typeinfo> 4 using namespace std; 5 6 7 class Base1 8 { 9 public: 10 B
相关文章
相关标签/搜索