【简答题】请按下面注释的提示,将类B的构造函数定义补充完整。 classA { int a; public: A(int aa=0) {a=aa;) }; Class B:public A { int b; A c; public: //用aa初始化基数A,用aa+1初始化类对象成员c B(int aa): (b=aa+2) };
【简答题】请按下面注释的提示,将类B的构造函数定义补充完整。 class A { int a; public: A(intaa=0){a=aa;} }; classB:public A{ int b; A c; public: // 用aa初始化基类A,用aa+1初始化类对象成员c B(intaa):______ { b=aa+2; } };
【单选题】Why do you listen to music? If you should put this question to a number of people, you might receive answers like these: 'I like the beat of music,' 'I look for attractive tuneful- ness,' 'I am moved ...
【简答题】请按下面注释的提示,将类B的构造函数定义补充完整。 C1assA { int a; public: A(int aa=O){a=aa;} }; class B:public A { int b; A c; public: //用aa初始化基类A,用aa+1初始化类对象成员c B(int aa}:【 】{b=aa+2} };