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
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
How a macro differs from a template?
Write about all the implicit member functions of a class?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
Why the usage of pointers in C++ is not recommended ?
Describe protected access specifiers?
What does asterisk mean in c++?
Explain what are accessor methods?
What are the main features of c++?
Can you please explain the difference between static and dynamic binding of functions?
Is turbo c++ free?
What is guard code in c++?
What are iterators in c++?
Is there finally in c++?
What is a constant reference?