What Is The Difference Between A Copy Constructor And An Overloaded Assignment Operator?
Answers
Answered by
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
English,
6 months ago
Biology,
6 months ago
Environmental Sciences,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago
Science,
1 year ago
English,
1 year ago