Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
21 / 187
What are "VTABLE" and "VPTR" ?
Answer:
The virtual table(vtable) is a lookup table of functions used to resolve function calls in a dynamic/late binding manner. vPtr is set (automatically) when a class instance is created so that it points to the virtual table for that class. vPtr is inherited by derived classes,
Asked In ::
Varun Kumar Rai
13 Oct, 2019 1:07 PM
The virtual table(vtable) is a lookup table of functions used to resolve function calls in a dynamic/late binding manner. vPtr is set (automatically) when a class instance is created so that it points to the virtual table for that class. vPtr is inherited by derived classes,