题目内容:
有如下程序: #include
usingnamespacestd;
classBASE{
public:
~BASE(){cout<<"BASE";}
};
classDERIVED:publicBASE{
public:
~DERIVED(){cout<<"DERIVED";}
};
intmain(){DERIVEDx;return0;}
执行后的输出结果是( ) A.BASE
B.DERIVED
C.BASEDERIVED
D.DERIVEDBASE
参考答案:
答案解析: