Answers

Question and Answer:

  Home  C++ Virtual Functions

⟩ What is the use of Vtable?

Vtables are used for virtual functions. Its a shortform for Virtual Function Table.

It's a static table created by the compiler. Compiler creates a static table per class and the data consists on pointers to the virtual function definitions. They are automatically initialised by the compiler's constructor code.

 233 views

More Questions for you: