+ 1

Does derived class inherits v pointer from base class and uses that only or it have its own v pointer also?

In inheritance hierarchy, does derived has it own v pointer or it uses inherited v pointer from base class and when we create object of derived class so compiler uses that inherited v pointer to point to derived class virtual table?

17th Jan 2020, 1:26 PM
Amit chavare
Amit chavare - avatar
1 Answer