A virtual destructor ensures a C++ object will correctly call the destructor of the most-derived class when a polymorphic object is deleted through a pointer to its base class.
2 years ago
4 Answers
3 Answers
3 years ago
2 Answers
39 Questions - 0 Points
42 Questions - 0 Points
43 Questions - 0 Points
41 Questions - 0 Points
45 Questions - 0 Points