Get premium membership and access questions with answers, video lessons as well as revision papers.

What type of operations will cause the copy constructor to be invoked?

      

What type of operations will cause the copy constructor to be invoked?

  

Answers


Davis
A copy constructor is called when an initialization takes place I specifically, when one object is passed as a parameter to a function, and when a temporary object is created when an object is returned by a function.
Githiari answered the question on February 4, 2018 at 13:07


Next: What is the most common general form of a copy constructor in C++ language?
Previous: Briefly explain what the overload keyword does and why it is no longer needed in a computer program.

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


Learn High School English on YouTube

Related Questions