Computer Science, asked by sohamjainsoham9570, 1 year ago

What Is The Difference Between A Copy Constructor And An Overloaded Assignment Operator?

Answers

Answered by liza10987654321
0

⭕️A copy constructor is an overloaded contructor where as an assignment operator is a bitwise operator. Using copy constructor you can initialize a new object with an already existing object.

⭕️On the other hand, an assignment operator is invoked only when an object is being assigned to another object.

✌✌✌✌✌✌✌

Similar questions