C++ Virtual Functions Question: Download Questions PDF
What is the use of Vtable?
![C++ Virtual Functions Interview Answer C++ Virtual Functions Interview Question](https://globalguideline.com/public/images/interview/31.png)
Answer:
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.
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.
Download C++ Virtual Functions Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain virtual destructor? | What is Virtual destructor ans explain its use? |