问题 单项选择题

有如下程序

  #include

  using namespace std;

  Class Base{

  public:

  Base(int x=0):valB(x) {cout<

  ~Base() {cout<

  private:

  int valB;

  };

  class Derived:public Base{

  public:

  Derived(int x=0,int y=0):Base(x),valD(y){cout<

  ~Derived() {cout<

  private:

  int valD;

  };

  int main(){

  Derived obj12(2,3);

  retuen 0;

  }

运行时的输出结果是()

A.2332

B.2323

C.3232

D.3223

答案

参考答案:A

多项选择题
单项选择题