What is the difference between a copy constructor and an
overloaded assignment operator?
Answer Posted / vsinghal
In case of copy constructor when the object goes out of
scope its destructor will be called while in case of
assignment operator no destructor will be called.
| Is This Answer Correct ? | 12 Yes | 14 No |
Post New Answer View All Answers
How does a C++ structure differ from a C++ class?
What is the main purpose of c++?
Can a list of string be stored within a two dimensional array?
Can I make ios apps with c++?
Is empty stack c++?
Write a program using display() function which takes two arguments.
What are arithmetic operators?
What is an iterator?
Is c the same as c++?
What does n mean in c++?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
What is abstraction in c++?
Why should we use null or zero in a program?
What is c++ library?
What is the difference between a "copy constructor" and an "assignment operator" in C++?