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

Copy constructors are used during class object
initialization and assignment operators are invoked during
object assignment.

XYZ c;
XYZ Obj = c; -> invoke copy constructor
XYZ d;
d = c; -> invoke assignment operator

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we delete this pointer in c++?

1210


What is the full form nasa?

1089


Is swift faster than c++?

1017


How do you define/declare constants in c++?

1043


what is c++

2381


How new/delete differs from malloc()/free?

1136


Refer to a name of class or function that is defined within a namespace?

1110


Name four predefined macros.

1037


What are the rules for naming an identifier?

1061


Describe about storage allocation and scope of global, extern, static, local and register variables?

1255


What is a multiset c++?

1142


What is the rule of three?

996


Write syntax to define friend functions in C++.

1067


Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?

2176


Is c++ the hardest language?

983