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 |
Which keyword is written to use a variable declared in one class in the other class?
What are properties in oop?
What is the benefit of oop?
Tell us about yourself.
47 Answers ABB, Amazon, Fidelity, Flextronics, Franklin Templeton, HCL, Hexaware, IBM, Impetus, Infosys, Reliance, Rofous, Silgate, Sutherland, TCS, Thomson Reuters, Virtusa, Wipro,
Why is oop better than procedural?
What is virtual Function.
What polymorphism means?
Which language is pure oop?
write knight tour problem which is present in datastructure
What does no cap mean?
What is function overloading and operator overloading?
WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP