Computer Science, asked by RohillaRajput100, 21 hours ago

What do you mean by destructor? ​

Answers

Answered by deepshikhasonuwal
0

Answer:

Destructor is a special member function that is excited automatically when an object is destroyed that has been created by the construction

Answered by vikrantruhela6938
1

 Destructor is a special method called automatically during the destruction of an object. Actions executed in the destructor include the following:

  1. Recovering the heap spaceallocated during the lifetime of an object.
  2. Closing file or database connections.
  3. Releasing network resources.
  4. Releasing resource locks.
  5. Other housekeeping tasks.
Similar questions