The vtable entry for a pure virtual function in C++ is
-
zero
-
NULL
-
one
-
No Entry in vtable
B
Correct answer
Explanation
Compilers typically set the vtable entry for a pure virtual function to NULL. This ensures that attempting to call a pure virtual function directly (without overriding) results in a predictable error. The NULL entry indicates no implementation is available in this class. Abstract classes cannot be instantiated precisely because they have such NULL vtable entries.