+ 1

What is difference between copy constructor and assignment operator?

23rd May 2018, 6:23 AM
R V
R V - avatar
2 Respostas
+ 11
A copy constructor is an overloaded contructor where as an assignment operator is a bitwise operator. Usingcopy constructor you can initialize a new object with an already existing object. ... On the other hand, anassignment operator is invoked only when an object is being assigned to another object. https://techdifferences.com/difference-between-copy-constructor-and-assignment-operator.html
23rd May 2018, 6:31 AM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
0
no se mucho ingles cout << " :(" ;
25th May 2018, 10:31 PM
MaRs
MaRs - avatar