摘要:
———————基类覆盖父类——————— 🎄引用的方式覆盖 #include "iostream" using namespace std; class base { public: base() {} base(int a, int b) : a(a), b(b) { } int a; int 阅读全文
———————基类覆盖父类——————— 🎄引用的方式覆盖 #include "iostream" using namespace std; class base { public: base() {} base(int a, int b) : a(a), b(b) { } int a; int 阅读全文
posted @ 2024-01-15 10:56
日落悬崖
阅读(19)
评论(0)
推荐(0)

———————类中的隐藏问题——————— 🎄在继承中,如果子类与父类出现同名函数,则子类会把父类的功能函数给隐藏掉 🎄子类中是用父类被隐藏掉的接口,用域操作符调用 ———————End———————
浙公网安备 33010602011771号