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 |
Advantage and disadvantage of routing in telecom sector
What are the advantages of inheritance?
26 Answers IBS, TCS,
How do you answer polymorphism?
program for insertion ,deletion,sorting in double link list
What is pure oop?
How is data security provided in Object Oriented languages? ?
What is abstraction oop?
why reinterpret cast is considered dangerous?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is Object and Class? What are the differences between them?
What is inheritance and how many types of inheritance?
What is Virtual Keyword?