问题
单项选择题
有如下类声明: class Foo{ int bar; }; 则Foo类的成员bar是
A.公有数据成员
B.公有成员函数
C.私有数据成员
D.私有成员函数
答案
参考答案:C
解析: 默认属性为private。
有如下类声明: class Foo{ int bar; }; 则Foo类的成员bar是
A.公有数据成员
B.公有成员函数
C.私有数据成员
D.私有成员函数
参考答案:C
解析: 默认属性为private。
根据短文内容,从下列方框中选择正确的选项填空,使短文内容完整、语句通顺,其中有两项 是多余的,将正确的选项代号写在短文后相应的横线上。 | |
students (3)_____ Xinshi Clothing Store. The things there aren't (4)_____ and they aren't (5)_____ . It (6)_____ the best things, and it doesn't have (7)_____ . It has the (8)_____ service. The clothes aren't the most fashionable, but they are more fashionable (9)_____ the clothes at the other three stores, and they are very beautiful. I want to buy the clothes at Xinshi Clothing Store, (10)_____ . |