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
What are the three main types of variables?
What is the benefit of oop?
What are the features of oop?
Can we create object of interface?
How is class defined?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is balance factor?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is the difference between procedural programming and oops?
What is class in oop with example?
What is polymorphism and its types?
Why multiple inheritance is not possible?
which feature are not hold visual basic of oop?
What is a function in oop?
Can you inherit a private class?