赞题库-背景图
单项选择题

有如下程序: #include #include using namespace std; class Father{ public: Father(string s):name(s) { cout<<’F’; } ~Father() { } private: string name; }; class Mother{ public: Mother(string s):name(s) { cout<<’M’; } ~Mother() { } private: string name; }; class Child:public Mother,public Father{ public: Child(string s1,string s2,string s3,int a):Father(s1),Mother(s2),name(s3),age(a) { cout<<’C’; } ~Child() { } private: string name; int age; }; int main(){ Child son("Zhang","Li","Ming",20); return 0; } 运行时的输出结果是

A.C
B.FMC
C.MFC
D.FMC20