What is the difference between a copy constructor and an
overloaded assignment operator?
Answer Posted / siddharth wighe
Second main difference:
A copy constructor has no return type, whereas an
overloaded assignment operator has one.
Third difference (trivial):
Name of the copy constructor is the same as that of the
class in which it is defined
----------------------
http://swighe.nipl.net
Is This Answer Correct ? | 32 Yes | 7 No |
Post New Answer View All Answers
Write a struct time where integer m, h, s are its members?
How static variables and local variablesare similar and dissimilar?
What is the most common mistake on c++ and oo projects?
What is a set in c++?
Tell me can a pure virtual function have an implementation?
how to explain our contribution in the project?
Are strings mutable in c++?
Is the declaration of a class its interface or its implementation?
What is set in c++?
What are friend functions in C++?
Comment on local and global scope of a variable.
Do vectors start at 0 c++?
What is called array?
What are multiple inheritances (virtual inheritance)?
What are the methods of exporting a function from a dll?