C++抽象类

至少有一个纯虚函数
不能生成对象

模拟方法
构造和拷贝构造都使用protected修饰
析构函数设置为纯虚函数
析构函数使用protected修饰

posted @ 2022-08-25 13:31  thomas_blog  阅读(16)  评论(0编辑  收藏  举报