+ 2
What are VTABLE and VPTR?
What are VTABLE and VPTR? In C++
1 Réponse
+ 1
To implement virtual functions, C++ uses a special form of late binding known as the virtual table. ... Each entry in this table is simply a function pointer that points to the most-derived function accessible by that class. Second, the compiler also adds a hidden pointer to the base class, which we will call *__vptr.
https://practice.geeksforgeeks.org/problems/what-are-vtable-and-vptr