Computer Science, asked by Mohit0, 1 year ago

What are VTABLE and VPTR?

Answers

Answered by Anshul2005b
0

The virtual table is a lookup table of functions used to resolve function calls in a dynamic/late binding manner. The virtual table sometimes goes by other names, such as “vtable”, “virtual function table”, “virtual method table”, or “dispatch table”.


C++ compiler creates a hidden class member called virtual-pointer or in short vptr when there are one or more virtual functions. This vptr is a pointer that points to a table of function pointers. This table is also created by compiler and called virtual function table or vtable.

thnx

have a nice day


Answered by GhaintMunda45
0

Hey !

______________________________

=> VTABLE

A table created or compiled by high leveled language by engineer level coding in Java, c++, python, etc.

=> VPTR

The code compiled during and error or code problem us shown in the compile section this is to be corrected later.

______________________________

Thanks !

Similar questions