What is the importance of destructors ?
Answers
Answered by
0
Explanation:
Destructor is called, Whenever the object of the class is destroyed. Main Functionality of Destructor is Cleanup the resources that have been allocated. One of the example is :::: Objects/Variables that were allocated on heap have to be deleted manually via Delete Keyword.. Otherwise it will results in memory leaks.
Similar questions