What is the significance of the “finalize” method ?
Ask by Amit Singh
Updated 22 Sep 2020
The job of freeing up the memory allocated to objects is that of a garbage collector. When the garbage collector determines that an object is no longer referenced it automatically runs a special destructor function called “Finalize”.