Why do we need a virtual table?
Without virtual tables you wouldn’t be able to make runtime polymorphism work since all references to functions would be bound at compile time. A simple example struct Base { virtual void f() { } }; struct Derived : public Base { virtual void f() { } }; void callF( Base *o ) { o->f(); } … Read more