employer cover photo
employer logo
employer logo

Veritas Technologies

Is this your company?

Veritas Technologies Interview Question

what is virtual destructor?

Interview Answer

Anonymous

Aug 8, 2019

Deleting a derived class object using a pointer to a base class that has a non-virtual destructor results in undefined behavior. To correct this situation, the base class should be defined with a virtual destructor.