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 |
What is encapsulation c#?
Can we create object of abstract class?
what is pointers
difference between structure and union.
Write a program in c++ to read two floating point numbers and find their sum and average.
Child cObj = new Parent() Wahts the output ?
What do you mean by binding of data and functions?
What is object and example?
What do you mean by Encapsulation?
What is namespace?
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
can inline function declare in private part of class?