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

A copy constructor constructs a new object by using the
content of the argument object. An overloaded assignment
operator assigns the contents of an existing object to
another existing object of the same class.

Is This Answer Correct ?    44 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define stacks. Provide an example where they are useful.

948


Can we delete this pointer in c++?

1148


How are pointers type-cast?

1057


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

1011


What is the copy-and-swap idiom?

1042


Do class declarations end with a semicolon? Do class method definitions?

1081


Write a program to show polymorphism in C++?

1077


What are the restrictions apply to constructors and destructors?

1026


Why is "using namespace std;" considered bad practice?

1035


Is there finally in c++?

1020


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

1074


What is a map in c++?

1093


What is the purpose of the "delete" operator?

1005


Can create new c++ operators?

957


What is the this pointer?

1064