This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / A c++ question for help!!! Thanks!
-zhu(猪头);
2002-8-8
{851}
(#681122@0)
-
Object Inheritance and destruction issue...If you have some basic idea on inheritance and object destruction, you would know whenever the descendants start to destroy themselves, system would automatically destroy their base class object first! That is the problem because the stupid base class has to use a pure virtual function to do the trick, ridiculous right?
-yiwen(yiwen);
2002-8-8
{321}
(#681630@0)
-
Moreover, the destructor of base class is not virtual!!! I cannot believe this code snippet is from a professional... So dumb
-yiwen(yiwen);
2002-8-8
(#681636@0)