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 constructor
I 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