InterviewSolution
Saved Bookmarks
| 1. |
What Is The Difference Between A Copy Constructor And An Overloaded Assignment Operator? |
|
Answer» A COPY constructor constructs a new object by using the CONTENT of the ARGUMENT object. An overloaded assignment operator assigns the contents of an existing object to another existing object of the same CLASS. A copy constructor constructs a new object by using the content of the argument object. An overloaded assignment operator assigns the contents of an existing object to another existing object of the same class. |
|