问题 填空题

有如下类声明:
class MyClass
int i;
private: int j;
protected: int k;
public: int m,n;

其中,私有成员的数量为______。

答案

参考答案:B

解析: 如果数据成员没用显式的作用域修饰符去修饰,则默认为私有数据成员。

选择题
单项选择题