A Admin • 833K Points Coach Q. Which of the following is the correct way to define a copy constructor in C++? (A) MyClass(const MyClass& other) { } (B) MyClass(MyClass& other) { } (C) Both A and B (D) None of the above Correct Answer - Option(A) Views: 23 Filed under category C++ Hashtags: Share Manage Tags
Discusssion
Login to discuss.