Greetings People!
Is there any difference or meaning in the code below?
1 2 3 4 5 6 7 8 9 10
class A{
public:
void Foo() { cout << " Foo() from A\n "; }
};
class B : virtualpublic A{
};
class C : virtualpublic A{
};
class D : public B, public C{
};
1 2 3 4 5 6 7 8 9 10
class A{
public:
void Foo() { cout << " Foo() from A\n "; }
};
class B : publicvirtual A{
};
class C : publicvirtual A{
};
class D : public B, public C{
};