题目内容:
有如下类定义: classTest{public: Test(){a=0;c=0;}//① int f(imA.const{this->a=a;}//② staticint g(){return a;f//③ voidh(int B.{Test:.b=b;};//④ private: int a; staticint b; constint C; }; int Test::b=0: 在标注号码的行中,能被正确编译的是( )。 A.①
B.②
C.③
D.④
参考答案:
答案解析: