What do you mean by destructor?
Answers
Answered by
8
Answer:
- Destructor is a class member function that deletes or destructs an object.
Answered by
2
Answer:
A destructor is a member function that is invoked automatically when the object goes out of scope or is explicitly destroyed by a call to delete . A destructor has the same name as the class, preceded by a tilde ( ~ ).
Similar questions
Math,
1 day ago
English,
1 day ago
Math,
1 day ago
Social Sciences,
3 days ago
Geography,
8 months ago