#include using namespace std; class Base { public: ~Base() { cout<<"BASE"; }; }; class DERIVED:public BASE { public: ~DERIVED() { cout<<"DERIVED"; }; }; int main() { DERIVED x; return 0; }