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
Why is main function important?
What are the vectors in c++?
What is c++ prototype?
What are the advantages of using a pointer?
Explain linear search.
What is array in c++ example?
how to explain our contribution in the project?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
Explain differences between new() and delete()?
Describe the advantages of operator overloading?
What is the type of 'this' pointer? When does it get created?
What are virtual functions in c++?
What is the role of copy constructor in copying of thrown objects?
How do I tokenize a string in c++?
Do inline functions improve performance?