A. sample(sample &x); B. sample &(sample x); C. sample(sample x); D. sample(sample *x);
A. 友元函数 B. 析构函数 C. 构造函数 D. 拷贝构造函数
A. outfile.write((char*)&data,sizeof(int)); B. outfile.write((int*)&data,data); C. outfile.write((int*)&data, sizeof(int)); D. outfile.write((char*)&data,data);
A. 构造函数可以设置默认参数 B. 构造函数在定义类的对象时自动执行 C. 构造函数可以是内联函数 D. 构造函数不可以重载
A. class derived: student private{...}; B. class derived: student public{...}; C. class derived: private student{...}; D. class derived: public student{...};
A. 私有成员 B. 公有成员 C. 保护成员 D. 保护成员或私有成员