In my daily life and while reading books I've seen the term destructor as well as deconstructor.
But what is the correct name for this method?
It is destructor used to cleanup the stuff when the object is about to die. It is called automatically if specified when object is going to be removed/die.
More Info:
http://en.wikipedia.org/wiki/Destructor_%28computer_science%29
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With