C++学习
C++学习
Po 麻煩
这个作者很懒,什么都没留下…
展开
-
01_c++虚方法、抽象函数、动态数组、命名空间
#include<iostream> #include<string> class first_class { public: first_class(); ~first_class(); virtual void say_hello(); //前方加virtual为虚方法声明 static int getCount(); protected: int cou...原创 2020-03-16 14:04:27 · 84 阅读 · 0 评论 -
00_c++中的类创建、继承、静态属性、静态方法、友元关系
#include<iostream> #include<string> class first_class { public: first_class(); ~first_class(); void say_hello(); static int getCount();//静态方法 protected: int count = 0; private: fr...原创 2020-03-16 13:29:08 · 78 阅读 · 0 评论