What is a vtable in C++ [duplicate]
Solution 1:
V-tables (or virtual tables) are how most C++ implementations do polymorphism. For each concrete implementation of a class, there is a table of function pointers to all the virtual methods. A pointer to this table (called the virtual table) exists as a data member in all the objects. When one calls a virtual method, we lookup the object's v-table and call the appropriate derived class method.
Solution 2:
vTable (virtual table) is an implementation detail of dynamic dispatch (virtual
methods).
See C++-Lite-Faq for more details.