Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 would you obtain segment and offset addresses from a far address of a memory location?

1086


Is java the same as c++?

998


Do you know the problem with overriding functions?

1109


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1031


Is arr and &arr are same expression for an array?

1057


What is binary search in c++?

1035


Differentiate between late binding and early binding.

1279


Write about the role of c++ in the tradeoff of safety vs. Usability?

1074


What does flush do c++?

1069


Why are pointers used?

1013


Why is c++ not purely object oriented?

1013


How to defines the function in c++?

1141


When does the c++ compiler create temporary variables?

1051


How do you write a function that can reverse a linked-list?

1114


What is data type in c++?

1016