Subclass destructor, how to call the superclass destructor?
The class Parent
{
To the Parent () {}
}
Child: class public Parent
{
~ the Child () {}
}
Child () that can be invoked to ~ ~ the Parent ()
CodePudding user response:
I tried to let both the destructor is virtual functions, but still not transferred to, feeling is also a demon
CodePudding user response:
As virtual automatically calls,
CodePudding user response:
Don't write any code automatically calls,
CodePudding user response: