有如下定义,上述程序段中,错误的语句是。 cpp

有如下定义,上述程序段中,错误的语句是()。

 cpp class Sample{ public: Sample(int x): ref(x) {}  //① private: Sample():ref(0) {}       //② static int val=5;        //③ const int ref;           //④ };


答案
C

题目信息

题号:6130
题型:单选题
难度:普通