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 copy constructor can be used?

Answer Posted / sachin magdum

1. "assigning" - don't use this word, it should be
initializing an object using another object of same type
2. When the object is passed to function - "by value"
3. when a function returns the object type - "by value"
here doesn't matter if you are assigning that returned
value to to another object or not.

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are single and multiple inheritances in c++?

1033


Which ide is best for c++?

990


Explain what is polymorphism in c++?

1081


What are keywords in c++?

1046


What is the arrow operator in c++?

950


How do you master coding?

987


Explain the properties and principles of oop.

960


What are the types of container classes?

1085


What are the differences between the function prototype and the function defi-nition?

1044


Explain dangling pointer.

1074


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

1117


Can I learn c++ as my first language?

1053


Where and why do I have to put the "template" and "typename" keywords?

978


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

1092


What is ostream in c++?

959