Explain the use of vtable.



Explain the use of vtable...

Answer / Vimal Kumar Singh

A vtable (Virtual Table) is a data structure used by C++ to store addresses of virtual functions. Each object instance in memory has its own vtable that points to the methods for that specific class or base class, allowing polymorphism and runtime binding in C++.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Explain the operation of overloading of an assignment operator.

1 Answers  


What is a "RTTI"?

6 Answers   HCL,


What is #include iostream h in c++?

1 Answers  


What are the types of array in c++?

1 Answers  


Can we distribute function templates and class templates in object libraries?

1 Answers  


What is Namespace?

5 Answers   HCL, Samsung,


What is virtual table?

1 Answers  


What is static function and static class?

4 Answers   HCL,


Can I learn c++ without knowing c?

1 Answers  


Define what is constructor?

1 Answers  


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

1 Answers  


Why null pointer is used?

1 Answers  


Categories