Possible Duplicate:
In C++ virtual base class?
The virtual keyword is used to remove the ambiguity, but how does it actually work?
I have four classes: a, b, c, and d.
I am doing:
class a
{public int a;};
class b: virtual public a
{};
class c: virtual public a
{};
class d:public b,public c
{};
This works, but what actually happens?