摘要:
class Base{ public: Base() { } virtual ~Base(); void foo() { wrong(); } virtual void wrong() = 0; }; void Base::wrong(){} Base::~Base(){ foo(); } clas 阅读全文
摘要:
#include <iostream> class Base { public: Base() { foo(); } void foo() { wrong(); } virtual void wrong() = 0; }; void Base::wrong() { std::cout << "bas 阅读全文