请在 下方输入 要搜索的题目:

有如下类定义: 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;}; //④ private: int a; static int b; const int C; }; int Test::b=0; 在标注号码的行中,能被正确编译的是()。


A、①
B、②
C、③
D、④

发布时间:2025-03-21 12:52:16
推荐参考答案 ( 由 快搜搜题库 官方老师解答 )
联系客服
答案:D
专业技术学习
专业技术学习
搜搜题库系统