When a derived virtual calls the base-class version, it must do so explicitly using the scope operator. If the derived function neglected to do so, then the call would be resolved at run time and would be a call to itself,
resulting in an infinite recursion.
本文探讨了派生类中的虚函数如果未正确使用作用域运算符调用基类版本时可能导致的问题。若不显式指定,调用将被视为运行时解析,最终导致自身调用形成无限递归。
4455

被折叠的 条评论
为什么被折叠?



