选择题   有如下类定义:
    class Sample{
    public:
      Sample(int x):ref(x){}    //①
    private:
      Sample():ref(0){}    //②
      static int val=5;    //③
      const int ref;    //④
    };
    上述程序段中,错误的语句是______。
 
【正确答案】 C
【答案解析】应为“static const int val=5;”,只有静态常量才可以初始化。