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


Please Help Members By Posting Answers For Below Questions

How do you clear a buffer in c++?

528


What is nested class in c++?

511


Do you know what are pure virtual functions?

636


What is the use of pointer in c++ with example?

553


Define token in c++.

705






What is setiosflags c++?

521


What happens if a pointer is deleted twice?

779


What do manipulators do?

558


Is oops and c++ same?

570


What do you mean by delegate? Can a user retain delegates?

516


Why ctype h is used in c++?

519


How many namespaces are there in c++?

549


What is private, public and protected inheritance?

581


When do we run a shell in the unix system? How will you tell which shell you are running?

549


What is string in c++ programming?

610