class Base { public: virtual void func() = 0; virtual ~Base() {}; // 注意,有{}实现 }; class Child : public Base { public: void func() { }; ~Child(){ ... }; }