C++

Topic: Constructors and destructors

Difference between a copy constructor and an assignment operator.  

Copy constructor creates a new object which has the copy of the original object . On the other hand assignment operators does not create any new object. It instead, deals with existing objects.

Browse random answers: