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

What is the full form of dos?

1168


Write about the members that a derived class can add?

975


what are the characteristics of Class Members in C++?

1044


How much maximum can you allocate in a single call to malloc()?

1107


How java is different from c and c++?

1202


What does it mean to declare a destructor as static?

1086


What are signs of manipulation?

1069


What do you understand by zombie objects in c++?

1102


You run a shell on unix system. How would you tell which shell are you running?

1173


What is the use of function pointer?

1031


Difference between a copy constructor and an assignment operator.

1002


Which ide is best for c++?

1050


What is c++ flowchart?

1393


When should we use container classes instead of arrays?

1028


What is a manipulator in c++?

1237