C++ Programming - Constructors and Destructors - Discussion
Discussion Forum : Constructors and Destructors - General Questions (Q.No. 6)
6.
Which constructor function is designed to copy objects of the same class type?
Discussion:
3 comments Page 1 of 1.
ASJAD KHAN said:
5 years ago
A copy constructor is used for creating a new objects as a copy of existing objects. The first arguments of such a constructor is reference to he object of same type as I is being constructed.
Manasvi said:
1 decade ago
A copy constructor is a special constructor in the C++ programming language for creating a new object as a copy of an existing object. The first argument of such a constructor is a reference to an object of the same type as is being constructed (const or non-const) , which might be followed by parameters of any type (all having default values).
Prakash said:
1 decade ago
Can any one tell me what is actually copy constructor?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers