有如下程序:#include <iostream>using namespace std;class BASE{public: ~BASE(){cout<<"BASE";}};class DERIVED: public BASE{public: ~D

admin2009-01-15  50

问题 有如下程序:#include <iostream>using namespace std;class BASE{public:  ~BASE(){cout<<"BASE";}};class DERIVED: public BASE{public:   ~DERIVED(){ cout<<"DERIVED"; }int main() { DERIVED x; return 0; }执行后的输出结果是(    )。

选项 A、BASE
B、DERIVED
C、BASEDERIVED
D、DERIVEDBASE

答案8

解析
转载请注明原文地址:https://kaotiyun.com/show/pAkp777K
0

最新回复(0)