Computer Science, asked by gagandeep284029, 7 months ago

what is copy constructor​

Answers

Answered by mahi1206
1

Answer:

A copy constructor is a member function which initializes an object using another object of the same class. A copy constructor has the following general function prototype: ClassName (const ClassName &old_obj);

Explanation:

hope it helps.

Answered by SanamKhan18
1

Answer:

the C++ programming language, a copy constructor is a special constructor for creating a new object as a copy of an existing object. Copy constructors are the standard way of copying objects in C++, as opposed to cloning, and have C++-specific nuances

Similar questions