首页 › 答案 › 题库 › 网课

有如下类声明:classFoo{intbar;}则Foo类的成员bar是()。

有如下类声明:classFoo{intbar;}则Foo类的成员bar是()。
A、私有成员函数
B、公有成员函数
C、公有数据成员
D、私有数据成员
正确答案:私有数据成员