+ 1
Why do we need to store a null value in vTable for a pure virtual function?
3 Respuestas
+ 1
That’s to make it so you can’t call on the function unless it’s defined else where.
0
if we can't create an object of a class which has pure virtual function, why do we need to store a null value in vTable, wasting memory?
0
It’s a base for the inherited classes to use that method.