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

Why a "operator=(...)" when there is a copy ctor?

Answer Posted / arun

Copy Constructor means creation of new object and after that
copy properties of some exiting object to newly created object.

Overloading assignment operator is that copy properties of
some exiting object to another exiting object of same type.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a null tree?

1144


How do you define social class?

1079


can inline function declare in private part of class?

4417


c++ program to swap the objects of two different classes

2423


What is methods in oop?

983


Can an interface inherit a class?

1069


What is the difference between inheritance and polymorphism?

1120


Why do we need polymorphism in c#?

1180


What is object and class in oops?

1075


What are the two different types of polymorphism?

1149


What is oops concept with example?

1038


What is encapsulation selenium?

1020


Why do we need oop?

1213


How do you achieve runtime polymorphism?

1056


What is the difference between a constructor and a destructor?

1268