Physics, asked by angad8745, 1 year ago

Explain about destructor with example.

Answers

Answered by swati7478
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