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
Explain the isa and hasa class relationships. How would you implement each?
What is the type of 'this' pointer? When does it get created?
What are the types of array in c++?
Which one between if-else and switch is more efficient?
Write some differences between an external iterator and an internal iterator?
What do you mean by overhead in c++?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
What are static member functions?
What is ios flag in c++?
Why c++ is created?
What is pure virtual function?
Why is c++ difficult?
What is the history of c++?
What is a template in c++?
What is buffer and example?