关于拷贝构造函数的一个选择题 最好能给出解释
林初茵 2008-11-24 12:42:54 When a Copy Constructor is not written for a class, the C++ compiler generates one. Which of the following statements correctly describe the actions of this compiler-generated Copy Constructor when invoked? (当类中没有拷贝构造函数时,编译器会自己生成1个,下列说法正确的是:)
A. The compiler-generated Copy Constructor makes the object being constructed, a reference to the object passed to it as an argument. (编译器生成的拷贝构造函数使对象被构造,对象的引用作为一个参数)
B. The compiler-generated Copy Constructor does not do anything by default. (编译器生成的拷贝构造函数默认情况什么都不做)
C. The compiler-generated Copy Constructor performs a member-wise copy of the object passed to it as an argument, into the object being constructed. (编译器生成的拷贝构造函数执行,一个对象的成员拷贝作为一个参数,传入对象被构造)
D. The compiler-generated Copy Constructor tags the object as having been Copy-Constructed by the compiler. (编译器生成的拷贝构造函数给对象贴标签作为被“拷贝构造”了)
E. The compiler-generated Copy Constructor invokes the assignment operator of the class. (编译器生成的拷贝构造函数调用类的运算符)