Saved Bookmarks
| 1. |
How to overcome the problem arising due to destruction of temporary object?(a) Overloading insertion operator(b) Overriding functions can be used(c) Overloading parenthesis or returning object(d) Overloading assignment operator and defining copy constructorI got this question in semester exam.Origin of the question is Passing and Returning Object with Functions topic in division Object of Object Oriented Programming |
|
Answer» The correct OPTION is (d) Overloading assignment operator and defining copy constructor |
|