What is the structure of virtual tables in C++?
问题 For Example I have two "intefaces" and class type: class IPlugin { public: virtual void Load(void) = 0; virtual void Free(void) = 0; }; class IFoo { public: virtual void Foo(void) = 0; }; class Tester: public IPlugin, public IFoo { public: Tester() {}; ~Tester() {}; virtual void Load() { // Some code here } virtual void Free() { // Some code here } virtual void Foo(void) { // Some code here } }; What structure vtab actually has for instance of type Tester ? And how would be dynamic_cast