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

Describe private, protected and public?

1139


What are the differences between java and c++?

1133


Explain what you mean by a pointer.

1159


Is c++ high level programming language?

1184


What is the use of data hiding?

1066


How does a C++ structure differ from a C++ class?

1180


What are the advantages of c++? Explain

1117


How do you flush a buffer in c++?

1146


What is stoi in c++?

1233


Why is c++ considered difficult?

1224


What are references in c++? What is a local reference?

1110


Define private, protected and public access control.

1168


What is the difference between the parameter to a template and the parameter to a function?

1172


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

1164


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1162