c++基础学习(08)--(继承、重载、多态、虚函数)

文章目录 目录 1.继承 2.重载 3.多态 && 虚函数 目录 1.继承 #include <iostream> using namespace std; // 基类 class Shape { public: void setWidth(int w) { width = w; } void setHeight(int
相关文章
相关标签/搜索