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

Explain the isa and hasa class relationships. How would you implement each?

582


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

523


What are the types of array in c++?

592


Which one between if-else and switch is more efficient?

580


Write some differences between an external iterator and an internal iterator?

550






What do you mean by overhead in c++?

548


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

645


What are static member functions?

597


What is ios flag in c++?

655


Why c++ is created?

551


What is pure virtual function?

601


Why is c++ difficult?

585


What is the history of c++?

534


What is a template in c++?

607


What is buffer and example?

504