Feb 5, 2014 at 9:03am
Hello,
what is the size of object of Class child in following case?
class Parent
{
};
class Child : virtual public Parent
{
};
Feb 5, 2014 at 9:22am
thanx cire for reply.
yes you are right.
size become 4 byte(depend on compiler).
right?
Feb 5, 2014 at 9:39am
yes its because Child class contain one vptr. because its virtual base class inheritance.
So, what that vptr stored?
means whose address it store?
address of VTable for Parent class?
Feb 6, 2014 at 5:14am
Hi cire,
waiting for reply...