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...

tell about copy constructor

Answer Posted / achal ubbott

e.g. Let there be a class

class Sample
{

};
suppose in main() you do like here

Sample obj1;
Sample obj2 = obj1; // Copy cons called here.
// then you call a function like this

fun(obj1); //Copy cons called here.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the sylabus for priliminaries?

2179


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1931


Is abstract thinking intelligence?

1053


What is abstract class in oops?

1026


• What are the desirable attributes for memory managment?

2234


What is the use of oops?

1066


Can you inherit a private class?

1105


What is encapsulation in oops?

1015


Why is abstraction needed?

1038


What is polymorphism and example?

1051


What is the point of oop?

1192


What is multilevel inheritance in oop?

1043


i got a backdoor offer in process global,Bangalore..Can i work with it?

2845


What is constructor overloading in oop?

1137


What is the full form of oops?

1194