1.

What Do You Understand By Zombie Objects In C++?

Answer»

In a situation, where an object is created in a class, a constructor fails before its full execution. It is very difficult to ensure about the execution of the constructor whether the constructor WOULD return a value or not. OBJECTS that are no more REQUIRED for an APPLICATION are called zombie objects. These zombie objects occupy a space in the memory and wait for their TERMINATION.

In a situation, where an object is created in a class, a constructor fails before its full execution. It is very difficult to ensure about the execution of the constructor whether the constructor would return a value or not. Objects that are no more required for an application are called zombie objects. These zombie objects occupy a space in the memory and wait for their termination.



Discussion

No Comment Found