您的位置:首页 > 编程语言 > C语言/C++

子类的虚函数调用base 类的虚函数的情况【c++ primer 】

2011-03-04 15:12 260 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐