What is a copy constructor in C++?

Trainee Asked on August 15, 2019 in C++ Language.
Add Comment
1 Answer(s)

A copy constructor is the constructor which take same class object reference as the parameter. It gets automatically invoked as soon as the object is initialized with another object of the same class at the time of its creation.

Supporter Answered on August 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.