有如下程序:include<iostream>usingnamespacestd;classAA{public;AA( ){cOUt<<1;)};class
8 查阅
有如下程序:
include<iostream>
usingnamespacestd;
classAA{
public;
AA( ){cOUt<<1;)
};
classBB:publicAA{
intk;
public:
BB( ):k(0){tout<<12;}
BB(intn):k(n)(cout<<3;)
};
intmain( ){
BBb(4),c;
return0;
}
运行时的输出结果是( ).
A.1312
B.132
C.32
D.1412
参考答案: