A. Creates an object by copying values from any other object of same class
B. Creates an object by copying values from first object created for that class
C. Creates an object by copying values from another object of another class
D. Creates an object by initializing it with another previously created object of same class
I got this question in unit test.
My question is from Copy Constructor in portion Constructors and Destructors of Object Oriented Programming
Easy explanation – The object that has to be copied to new object must be previously created. The new object gets initialized with the same values as that of the object mentioned for being copied. The exact copy is made with values.