What is the difference between a copy constructor and an
overloaded assignment operator?

Answer Posted / guest

A copy constructor constructs a new object by using the
content of the argument object. An overloaded assignment
operator assigns the contents of an existing object to
another existing object of the same class.

Is This Answer Correct ?    44 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is main function important?

583


What are the vectors in c++?

577


What is c++ prototype?

580


What are the advantages of using a pointer?

600


Explain linear search.

629






What is array in c++ example?

645


how to explain our contribution in the project?

3073


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3354


Explain differences between new() and delete()?

615


Describe the advantages of operator overloading?

569


What is the type of 'this' pointer? When does it get created?

542


What are virtual functions in c++?

679


What is the role of copy constructor in copying of thrown objects?

592


How do I tokenize a string in c++?

605


Do inline functions improve performance?

640