What do you mean by destructor?
Answers
Answered by
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
1
Destructor is a special method called automatically during the destruction of an object. Actions executed in the destructor include the following:
- Recovering the heap spaceallocated during the lifetime of an object.
- Closing file or database connections.
- Releasing network resources.
- Releasing resource locks.
- Other housekeeping tasks.
Similar questions
English,
11 hours ago
Math,
11 hours ago
Math,
11 hours ago
Environmental Sciences,
21 hours ago
English,
21 hours ago
Social Sciences,
8 months ago
Hindi,
8 months ago