Accepting Answers...
   « »

what is temporary instance?


Posted- 2364 days ago
4 Answers

Answer This

temporary instance means the memory to which an object or a variable is alloted has only temporary scope like block scope or function scope etc which means if u declare a variable inside a block/function the memory which stores this variable at function call will be erased after the function is over.

 
It is a temporary object that is created at runtime, if a function is called without an output class. It is temporary as it is deleted from the memory as soon as the program ends.
 

It is a temporary object that is created at runtime, if a function is called without an output class. It is temporary as it is deleted from the memory as soon as the program ends.

 

temporary instance means the memory to which an object or a variable is alloted has only temporary scope like block scope or function scope etc which means if u declare a variable inside a block/function the memory which stores this variable at function call will be erased after the function is over.