赞题库-背景图
单项选择题

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

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