单项选择题

有如下类声明: class SAMPLE { int n; public: SAMPLE(int i=0):n(i) { } void setValue(int nO); }; 下列关于getValue 成员函数的实现中,正确的是

A.SAMPLE::setValue(int n{ n=nO;}
B.void SAMPLE::setValue(int n{ n=nO;}
C.void setValue(int n{ n=nO;}
D.(int n{ n=nO;}