What is a Virtual Destructor? Deleting a derived class object with a non-virtual destructor using a pointer of the base…