本文共 99 字,大约阅读时间需要 1 分钟。
重写:
发生在父子类之间,函数同名,且是虚函数,即多态,如果不是虚函数,那么就是函数重定义
重载:
发生在一个类中,函数名字相同,但是函数参数类型,函数参数个数,函数参数顺序这三个因素至少有一个不同
转载地址:http://trzmi.baihongyu.com/