C++基础 class类型

常规class class Rectengle { int width, height; static int a; // 类的公共变量,允许类名直接访问 public: Rectengle(){}; Rectengle(int x, int y) : width(x), height(y) {};
posted @ 2023-09-05 00:55  水水君  阅读(17)  评论(0编辑  收藏  举报