JY
2009-09-07 14:16:01 UTC
Hi,
Given the following classes:
class A
{
virutual void a();
};
class B
{
virtual void b();
};
class C{}: public A, public B
{
vitual voic c();
};
1. How many vptrs and vtables would an instance of Class C have?
2. If I make the inheritance virtual, i.e.
class C{}: public virtual A, public virtual B
{
vitual voic c();
};
would it make any difference?
TIA,
JY
Given the following classes:
class A
{
virutual void a();
};
class B
{
virtual void b();
};
class C{}: public A, public B
{
vitual voic c();
};
1. How many vptrs and vtables would an instance of Class C have?
2. If I make the inheritance virtual, i.e.
class C{}: public virtual A, public virtual B
{
vitual voic c();
};
would it make any difference?
TIA,
JY