有如下程序:#includeUsing namespace std;class Base{public:Base(intx=0):valB(x){cout<<valB;}
有如下程序: #include Using namespace std; class Base{ public: Base(intx=0):valB(x){cout<<valB;} ~Base()(cout<<valB;) Private: intvalB; }; class Derived:public Base{ public: Derived(int x=O,int y=O):Base(x),va1D(y)(cout<<valD;) ~Derived()(cout<<va1D;) private: int valD; int main(){ Derived obj 12(2,3); return 0; } 运行时的输出结果是()。
A.2332
B.2323
C.3232
D.3223 .