Quiz · Memory and Smart Pointers · lesson 3 of 12Quiz — virtual destructorWhy do base classes need a virtual destructor, and what happens without one?[A]It makes delete through a base pointer run the derived destructor; without it, only the base one runs safely[B]It matters only when the derived class owns memory; otherwise delete through a base pointer is safe[C]It lets a derived object be deleted through a base pointer at all; without it, such a delete does not compile[D]It makes delete through a base pointer run the derived destructor; without it, the behavior is undefined← BackQuiz — using an object after deleteNext →RAII