#ifndef DERIVED_H #define DERIVED_H #include #include "base.h" using namespace std; class derived: public base { int d; public: derived(int init_b, int init_d): base {init_b}, d {init_d} { cout << "constructing derived\n"; } ~derived() {cout << "destructing derived\n";} void f() const override {cout << "bigger and better f\n";} }; #endif