virtual function question
Say you have a class named 'Parent' with a virtual function called 'vfunction'. This virtual function only has full implementation in child classes. Now, in the destructor of the Parent function it calls the 'vfunction' function. Since the function is a virtual function, should the function be executed in the child class? This is not what is happening and I can only assume that it is illegal to do so.
The obvious solution would be to remove the desired code from the destructor and create a new virtual function and then call that function just before the destructor. It would be nice if I didn't have to do this, though, as it means placing the same code throughout the child classes (an OOP violation)
Am I correct that this is not possible?