All IT and Non IT Interview Questions, MCQs, Online Quiz Questions, Engineering VIVA Questions
Home » Unlabelled » How does a copy constructor differs from an overloaded assignment operator? | Constructor in C++
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment