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 / sagarson

Copy constructors are called in following cases:
a) when a function returns an object of that class by value
b) when the object of that class is passed by value as an
argument to a function
c) when you construct an object based on another object of
the same class
d) When compiler generates a temporary object

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

1000


How much do coding jobs pay?

1008


Is string an object in c++?

1151


What are guid? Why does com need guids?

1051


Can a program run without main?

1236


What is the iunknown interface?

1123


write a porgram in c++ that reads an integer and print the biggest digit in the number

2251


Explain the difference between c++ and java.

1110


What is the use of namespace std in C++?

1069


Does c++ vector allocate memory?

1008


Please explain class & object in c++?

1093


Write bites in Turbo c++ Header ("Include") Files.

1263


When does a 'this' pointer get created?

1088


What does std mean in c++?

1120


What is near, far and huge pointers? How many bytes are occupied by them?

1117