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

when can we use copy constructor?

Answer Posted / praveen

A copy constructor is used in the following cases.
* When compiler generates a temporary object.
* When an object is return type of pointer.
* This is a temporary object.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I learn c++ in a week?

1124


Is std :: string immutable?

1095


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

1162


How do I run a program in notepad ++?

1168


What is the c++ programming language used for?

1090


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1946


Differentiate between a constructor and a destructor in c++.

1052


What is setw manipulator in c++?

1121


What are inline functions? What is the syntax for defining an inline function?

1206


What is an adaptor class or wrapper class in c++?

1324


what does the following statement mean? int (*a)[4]

1136


Is dev c++ free?

1098


Explain the pure virtual functions?

1165


Why the usage of pointers in C++ is not recommended ?

1516


How can I learn c++ easily?

1135