Wednesday 22 February 2012

How does a copy constructor differs from an overloaded assignment operator? | Constructor in C++

A copy constructor uses the value of an argument to construct a new object. We can use an overload assignment operator to assign the value of an existing object of the same class to another existing object in that class.