【单选题】有如下类定义: class Test { public: Test(){a=0c=0} //① int f(int a)const{this->a=a} //② static int g(){return a} //③ void h(int b){Test::b} //④ private: int a static int b const int C } int Test::b=0 在标注号码的行...
【单选题】有如下类定义: class Test { int x_,y_ public: Test ():a_(0) ,b_(0) {} Test(int a,int b=0) :a_(a),b_(b){} } 若执行语句 Test x(2) ,y[3],*z[4] 则Test类的构造函数被调用的次数是( )。
【单选题】有如下类定义: class Test { public: Test(){a=0;C=0;t //① int f(int A) const{this->a=a;} //② static int g( ){return a;} //③ void h(int B) {Test::b=b;}; //④ private: int a; static int b; const int c; }; int Te...