InterviewSolution
Saved Bookmarks
| 1. |
When an object is returned by a function, a _______________ is automatically created to hold the return value.(a) Temporary object(b) Virtual object(c) New object(d) Data memberThe question was posed to me at a job interview.I want to ask this question from Passing and Returning Object with Functions topic in division Object of Object Oriented Programming |
|
Answer» CORRECT answer is (a) TEMPORARY object Easy explanation - The temporary object is created. It holds the return value. The VALUES gets assigned as REQUIRED, and the temporary object gets destroyed. |
|