单选题
下列程序中说明的公有成员是( )。 class Location{
下列程序中说明的公有成员是( )。 class Location{
int X;
public :
void init (int X, int Y);
private:
int Y;
public:
int GetX();
int GetY();
}
A
X
B
init(int X ,int Y )
C
GetX(),GetY()
D
B 和C 都是
答案解析
正确答案:D
解析:
代码里的public :下面有B、C选项
题目纠错
计算机省级考试题目
