Vidyalelo
C++ Programming · Q62

Constructors and Destructors in C++

Programming · C++ Programming · question 62

Q62

What is a copy constructor?

A.
A constructor that allows a user to move data from one object to another
B.
A constructor to initialize an object with the values of another object
Answer
C.
A constructor to check the whether to objects are equal or not
D.
A constructor to kill other copies of a given object.

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board