有两个类Father和Mother和它们的共同子类Son。现在Father、Mother和main函数的代码已经完成。请根据已有的代码完成类Son的设计
class Son : virtual public Mother, virtual public Father
{
public:
Son(int a, int b, int c, int d, int e) : mo(d), fa(c), Mother(a), Father(b)
{
cout << "Son Constructed " << e << endl;
}
void doSomething()
{
Father::doSomething();
Mother::doSomething();
cout << "Hello Son" << endl;
}
private:
Father fa;
Mother mo;
};