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

Is arr and &arr are same expression for an array?

1103


Will this c++ program execute or not?

1162


Can a Structure contain a Pointer to itself?

1209


What is a tuple c++?

1052


Define private, protected and public access control.

1170


What's the best free c++ profiler for windows?

1135


How do I run a program in notepad ++?

1173


What is an overflow error?

1156


What is the best ide for c++?

1151


What is a linked list in c++?

1107


What is a manipulative person?

1080


What is a dangling pointer in c++?

1208


Program to check whether a word is a sub-string or not of a string typed

2094


What is the use of endl in c++ give an example?

1216


What is lazy initialization in c++?

1159