CS202   4- ‹#›
nWhenever we have virtual functions, we should always declare the destructor to be virtual.
nMaking the destructor virtual will ensure that the correct destructor will be called for an object when pointers to direct or indirect base classes are used.
nIf the destructor is not declared to be virtual, then the destructor is statically bound based on the type of pointer or reference and the destructor for the actual object pointed to will not be called when the object is deallocated.
nIn the account class’ public section add:
n virtual ~account();
Virtual Destructors