what is the main purpose of a destructor?
could you give any examples of what i might want to run when a object is deleted?
Reference for book
Destructor often use for close DB connections and fclose () for fopen() connection in class
fclose ()
fopen()