[单选题]

有如下类声明: class Foo{ int bar; }; 则Foo类的成员bar是

A.公有数据成员

B.公有成员函数

C.私有数据成员

D.私有成员函数

参考答案与解析:

相关试题

有如下类声明: class Foo{ int bar; }; 则Foo类的成员b