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

How do you flush a buffer in c++?

1142


Which function cannot be overloaded c++?

1162


an operation between an integer and real always yeilds a) integer result b) real result c) float result

1212


What is lambda expression c++?

1119


What is using namespace std in c++?

1205


What is the use of default constructor?

1144


Write a program to add three numbers in C++ utilizing classes.

1179


Is turbo c++ free?

1120


What does flush do?

1046


Are there interfaces in c++?

1064


Write a note about the virtual member function?

1106


Is it possible to use a new for the reallocation of pointers ?

1121


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

1324


What are the types of array in c++?

1228


What are structures and unions?

1063