When a copy constructor may be called?
(A) When an object of the class is returned by value.
(B) When an object of the class is passed (to a function) by value as an argument.
(C) When an object is constructed based on another object of the same class
(D) When compiler generates a temporary object.
(E) All of the above
Explanation: See When is copy constructor called?
Quiz of this Question
- C++ | Constructors | Question 3
- C++ | Constructors | Question 4
- C++ | References | Question 1
- C++ | Class and Object | Question 3
- C++ | Constructors | Question 6
- C++ | Misc C++ | Question 8
- C++ | Misc C++ | Question 7
- C++ | Inheritance | Question 14
- C++ | Misc C++ | Question 6
- C++ | const keyword | Question 5