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
How do you clear a buffer in c++?
What is nested class in c++?
Do you know what are pure virtual functions?
What is the use of pointer in c++ with example?
Define token in c++.
What is setiosflags c++?
What happens if a pointer is deleted twice?
What do manipulators do?
Is oops and c++ same?
What do you mean by delegate? Can a user retain delegates?
Why ctype h is used in c++?
How many namespaces are there in c++?
What is private, public and protected inheritance?
When do we run a shell in the unix system? How will you tell which shell you are running?
What is string in c++ programming?