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 |
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
How would you stop a class from class from being derived or inherited.
why we call c++ is object oriented lanaguage
What is encapsulation in oops?
Can you explain polymorphism?
What are the 5 oop principles?
Why interface is used?
tel me oops defination in single line
What is difference between data abstraction and encapsulation?
What is oops in programming?
How can we use the preprocessor #if and #elseif.
Why we use classes in oop?