What is the most common general form of a copy constructor in C++ language?

      

What is the most common general form of a copy constructor in C++ language?

  

Answers


Davis
The most common general form of a copy constructor is as;
classname(const classname &obj){
// body of constructor}
Githiari answered the question on February 4, 2018 at 13:01


Next: Give two reasons why you might need to overload a class's constructor in a computer program.
Previous: What type of operations will cause the copy constructor to be invoked?

View More Computer Science Questions and Answers | Return to Questions Index


Exams With Marking Schemes

Related Questions