1.

What Is The Difference Between A Destructor And A Garbage Collector?

Answer»

A DESTRUCTOR is a special member function of a CLASS called as soon as an object is de-allocated, while a garbage collector is either a program or an application that de-allocates the memory of a formerly UNREACHABLE object.

A destructor is a special member function of a class called as soon as an object is de-allocated, while a garbage collector is either a program or an application that de-allocates the memory of a formerly unreachable object.



Discussion

No Comment Found