|
There is no inheritance of destructors, and subclasses have their own destructors.
Using virtual is the problem of override. Generally, virtual functions are used in the parent class, and the subclass will implement the function with the same name. If it is inherited, should it be implemented by itself? So obviously this is not for inheritance.
So the concept of cuddling is wrong: virtual! = Inheritance |
|