C++远征之继承篇学习笔记之一 一、EX: class Worker:public Person{public:void work();int m_iSalary;}Worker类:子类(派生类)Person类 :父类(基类)二、继承方式公有继承 class A : public B保护继承 class A : protected B私有继承 class A : private B三、... 2023-06-13 继承C++远征文章基础课C语言基础