【单选题】有如下类定义: class Test { public: Test(){ a = 0 c = 0} // ① 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...
【单选题】有如下类定义: class Test { private int x public int y public void setX (int m) {x=m} public int getX( ) {return x} }现用Test t=new Text()生成一个对象t,则如下语句中,错误的是( )。
【单选题】有如下类定义: class Test { public: Test{a=0;c=0;}//① int f(im A.const{this->a=a;}//② static int g{return a;f//③ void h(int B.{Test:.b=b;};//④ private: int a; static int b; const int C; }; int Test::b=0: 在标注...