Interviewer And Interviewee Guide

C++ Virtual Functions Interview Question:

What is the use of Vtable?

Submitted by: Muhammad
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.
Submitted by: Muhammad

Read Online C++ Virtual Functions Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.