摘要: class Base{ public: Base() { } virtual ~Base(); void foo() { wrong(); } virtual void wrong() = 0; }; void Base::wrong(){} Base::~Base(){ foo(); } clas 阅读全文
posted @ 2021-06-23 19:35 fndefbwefsowpvqfx 阅读(68) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> class Base { public: Base() { foo(); } void foo() { wrong(); } virtual void wrong() = 0; }; void Base::wrong() { std::cout << "bas 阅读全文
posted @ 2021-06-23 10:09 fndefbwefsowpvqfx 阅读(90) 评论(0) 推荐(0) 编辑