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

why the argument is passed by reference to a copy
constructor?example?

Answer Posted / vishwa

we are creating a copy of the data , so it is better to get
the data directly from the original object, reference
mechanism provides us above. so we use the reference object
and also to restrict the change to original object we also
pass the reference as const.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three main types of variables?

1178


What is the benefit of oop?

1103


What are the features of oop?

1258


Can we create object of interface?

1175


How is class defined?

1208


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2593


What is balance factor?

1132


explain sub-type and sub class? atleast u have differ it into 4 points?

2360


What is the difference between procedural programming and oops?

1205


What is class in oop with example?

1158


What is polymorphism and its types?

1127


Why multiple inheritance is not possible?

1120


which feature are not hold visual basic of oop?

2233


What is a function in oop?

1136


Can you inherit a private class?

1141