why the argument is passed by reference to a copy
constructor?example?
Answer Posted / 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 |
Post New Answer View All Answers
Can bst contain duplicates?
What is abstraction in oop with example?
Is data hiding and abstraction same?
Is html an oop?
Can enum be null?
What is multilevel inheritance explain with example?
How do you use inheritance in unity?
What is multilevel inheritance?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
How Do you Code Composition and Aggregation in C++ ?
What is protected in oop?
What is polymorphism used for?
which feature are not hold visual basic of oop?
What is object in oop?
What is methods in oop?