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

What is a unnitialised pointer?

1019


Explain Text Manipulation Routines?

1044


When to use “const” reference arguments in a function?

1021


How is new() different from malloc()?

1074


what are the events occur in intr activated on interrupt vector table

1695


What is boyce codd normal form in c++?

1112


What is the full form of dos?

1064


Which bit wise operator is suitable for checking whether a particular bit is on or off?

976


What is the use of function pointer?

983


What is the difference between #define debug 0 and #undef debug?

1142


What is the function of I/O library in C++ ?

1132


Can we change the basic meaning of an operator in c++?

1083


what are the iterator and generic algorithms.

2101


How long does it take to get good at leetcode?

1129


What are exceptions c++?

997