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 / 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


Please Help Members By Posting Answers For Below Questions

What is the need of a destructor? Explain with the help of an example.

1029


Write my own zero-argument manipulator that should work same as hex?

1053


What is static function? Explain with an example

1078


what is a reference variable in C++?

1241


What c++ library is string in?

1058


What is the operator in c++?

1135


Define a constructor?

1050


What is static class data?

1061


Should a constructor be public or private?

1033


Can we overload operator in c++?

1042


What is an undefined reference/unresolved external symbol error and how do I fix it?

1124


How to tokenize a string in c++?

1062


What is a wchar_t in c++?

1139


What are the effects after calling the delete this operator ?

1056


List the advantages of inheritance.

1134