![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
有如下类声明: class SAMPLE { int n; public: SAMPLE(int i=0):n(i)
有如下类声明: class SAMPLE { int n; public: SAMPLE(int i=0):n(i) { } void setValue(int nO); }; 下列关于getValue 成员函数的实现中,正确的是
A.SAMPLE::setValue(int nO){ n=nO;}
B.void SAMPLE::setValue(int nO){ n=nO;}
C.void setValue(int nO){ n=nO;}
D.(int nO){ n=nO;}
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)