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 |
me get an assignent n its question is this 1.creat a set as in math i.ea={1,2} 2.insert element in it3. delete element don,t repeat any element 4.union 5. intersection of two sets plz help me i always pray for u n send me at ayeshawzd@hotmail.com f u have c++ how to program 5th addition then it is the 10.9 question in 10th chapter exercise
What is the difference between abstraction and polymorphism?
Name an advantage of linked list over array?
What is Virtual Keyword?
What is the importance of oop?
What is encapsulation in ict?
What is a friend function & its advantage?
which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean
How to deploy web appliction in web logic ?
What is a friend function & its advantage?
What is the difference between the c++ & java?
What is an interface in oop?