Explain about destructor with example.
Answers
Answered by
2
destructor is a special method called automatically during the destruction of an object. Actions executed in thedestructor include the following: Recovering the heap space allocated during the lifetime of an object
Similar questions