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. |
|