Q. Which of the following is the correct way to define a copy constructor in C++?
β
Correct Answer: (A)
MyClass(const MyClass& other) { }
Explanation: The correct way to define a copy constructor is 'MyClass(const MyClass& other) { }'.