What is the difference between overloading the operator = in a class and the copy constructor?
=
In which context is each one called?
I m
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.