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 |
Do you know about multiple inheritance?
Can java compiler skips any statement during compilation time?
What is the real time example of encapsulation?
how do you handle yourself when you feel the wald is aganist you
What is static modifier?
what is code for call by value and call by reference?
OOP'S advantages of inheritance include:
why we call c++ is object oriented lanaguage
explain the concepts of oops?
what is SPL in c++.
Write a program to reverse a string using recursive function?
What does sksksk mean in text slang?