摘要:
接前面虚表的内存分布,今天重点看多重继承的虚表内存分布,简单的说,继承几个类便有几个虚表,如下代码class Drive : public Base1, public Base2, public Base3 {public: virtual void fd() { cout #include using namespace std;class Base1 { virtual void f() { cout << "Base1::f" << endl; } virtual void g() { cout << "Base1::g& 阅读全文