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,
18 days ago
Physics,
18 days ago
Math,
1 month ago
Social Sciences,
1 month ago
Geography,
9 months ago