Kizspy | Question: 42
(Choose 1 answer)
What is the purpose of a copy constructor in a C++ class?
A. To initialize an object with default values
B. To copy the attributes of one object to another, ensuring deep copying if necessary
C. To destroy an object
D. To overload the assignment operator