有如下类定义:class XX{int XX;public:xx():xx(0){tout<<A;}XX(int n):xx(n){cout<<
16 查阅
有如下类定义:
class XX{
int XX;
public:
xx():xx(0){tout<<A;}
XX(int n):xx(n){cout<<B;}
};
class Y:Y:public XX{
int YY;
public:
YY():YV(O){cout<<YY;)
YY(int n):xx(n+1),YY(n){cout<<YY;}
YY(int m,int n):XX(m),YY(n){cout<<yy;)
};
下列选项中,输出结果为A0的语句是
A.YY yl(0,0);
B.YY 72(1);
C.YY y3(0);
D.YY y4;
参考答案: