0
Whats the use of pure virtual desrructor
Hi We cant ommit definition of destructor and hence we have to provide function body for pure virtual destructor. Now query is for the purpose of pure virtual destructor.... if body is needed , why to allow it at all ? Any specific purpose to do so?
1 Antwort
+ 1
Maybe if you make an interface like class which is a generic container, it will force children classes to define it?
edit: it indeed forces it