why the argument is passed by reference to a copy
constructor?example?
Answers were Sorted based on User's Feedback
Answer / ashponni
Compliler runs out of memory,by creating copies of object
Is This Answer Correct ? | 10 Yes | 0 No |
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 |
polymorphism means?
What is polymorphism explain?
Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??
What is class in oop with example?
what is difference between thread and programme.
What does and I oop mean in text?
How do you define social class?
what is namespace? what are the uses of namespace?
What is use of overloading?
the difference between new and malloc
What are the benefits of oop?
write a progra in c++ using class & object to find out wheather a given no. is prim or not.