0 votes
by (1.1k points)

1 Answer

0 votes
by (1.1k points)
selected by
 
Best 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 ( ~ ). 

Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
...