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.
constructor
copy constructor
destructor
default constructor
Answer: Option
Explanation:
No answer description is available. Let's discuss.
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.

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:

Your comments will be displayed after verification.