Home » Unlabelled » What is the difference between a destructor and a garbage collector? | Ajax Interview Questions
Thursday, 1 November 2012
What is the difference between a destructor and a garbage collector? | Ajax Interview Questions
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.
No comments:
Post a Comment