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

Answers were Sorted based on User's Feedback



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

Answer / ashponni

Compliler runs out of memory,by creating copies of object

Is This Answer Correct ?    10 Yes 0 No

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

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

More OOPS Interview Questions

What is pure oop?

0 Answers  


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

0 Answers  


which feature are not hold visual basic of oop?

0 Answers   Ignou,


What is a class?

32 Answers   Infosys, TCS, Thylak,


What is polymorphism used for?

0 Answers  


What is data binding in oops?

0 Answers  


What is encapsulation with real life example?

0 Answers  


What type of loop is a for loop?

0 Answers  


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

0 Answers  


What is an advantage of polymorphism?

0 Answers  


There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

2 Answers  


what is the definition of incapsulation

2 Answers  


Categories