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 Diffrence between a "assignment operator" and a
"copy constructor"?

Answer Posted / dee

assignment operator copies the values of one object to
another of the same class.It will excute only when the
right side of the variable is object and two sides are not
equal.It does shallow copy

Copy constructor craetes the object if its not existing and
copies the values of another object of the same class and
it does the deep copy.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c++ is created?

958


What is the advantage of c++ over c?

976


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3880


Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

1033


How would you implement a substr() function that extracts a sub string from a given string?

1001


Comment on assignment operator in c++.

1080


What is a volatile variable in c++?

1375


What is the difference between prefix and postfix versions of operator++()?

1038


Why is c++ awesome?

996


How do I run a program in notepad ++?

1060


Which is the best c++ compiler for beginners?

1036


how to explain our contribution in the project?

3647


why is iostream::eof inside a loop condition considered wrong?

1018


What is & in c++ function?

1016


Is java made in c++?

1009