+ 7

What is the purpose of a pure virtual destructor?

I had a look at this but still don't understand the need to have them. https://www.studytonight.com/cpp/virtual-destructors.php

23rd Apr 2019, 10:16 PM
Sonic
Sonic - avatar
2 Answers
+ 12
https://stackoverflow.com/questions/1219607/why-do-we-need-a-pure-virtual-destructor-in-c
23rd Apr 2019, 10:18 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
Pure vertual functions are used to declare the abstract classes to ensure that the abstract class will no be used and in any call of the function compiler will skip this function and search for its overload in the childrens
7th May 2019, 5:46 PM
Omar Sherif
Omar Sherif - avatar