C++ Programming - Constructors and Destructors - Discussion
Discussion Forum : Constructors and Destructors - General Questions (Q.No. 15)
15.
__________ used to make a copy of one class object from another class object of the same class type.
Discussion:
2 comments Page 1 of 1.
Susil kumar Rout said:
1 decade ago
I think it is a wrong answer given.
A copy constructor is used to create a new object and to copy an existing object to the new object of the same class not another class.
A copy constructor is used to create a new object and to copy an existing object to the new object of the same class not another class.
Pramod singh said:
1 decade ago
Dear @Rakesh answer is right, because in question, it is mentioned that objects are same type.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers