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
What is private, public and protected inheritance?
What is srand c++?
What is a memory leak c++?
Why the usage of pointers in C++ is not recommended ?
Explain selection sorting?
What is the iunknown interface?
What are the various compound assignment operators in c++?
What are the types of pointer?
What do you mean by translation unit?
What are the five basic elements of a c++ program?
What do you mean by late binding?
How delete [] is different from delete?
Why c++ does not have finally?
What is #include cstdlib in c++?
What is insertion sorting?