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

why do we need virtual methods in C++?

2015-04-18 16:06 447 查看
http://stackoverflow.com/questions/2391679/why-do-we-need-virtual-methods-in-c

Basic idea: when mark a method as virtual in a parent class, the compiler will check the method in the child class firstly.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: