摘要: demo1 在子类中使用 基类::函数调用基类函数 实现函数重写 #include <iostream> #include <string> using namespace std; // 基类 Person class Person { private: string name; int age; 阅读全文
posted @ 2025-08-02 09:41 xiaoluosibky 阅读(5) 评论(0) 推荐(0)