选择题
有如下类定义:
class Sample{
public:
Sample(int x):ref(x){} //①
Private:
Sample():ref(0){} //②
static int va1=5; //③
const int ref; //④
}
上述程序段中,错误的语句是______。
A、
①
B、
②
C、
③
D、
④
【正确答案】
C
【答案解析】
提交答案
关闭