Answers

Question and Answer:

  Home  C++ Virtual Functions

⟩ Explain virtual destructor?

If the destructor in the base class is not made virtual, then an object that might have been declared of type base class and instance of child class would simply call the base class destructor without calling the derived class destructor.

 208 views

More Questions for you: