#ifndef BASE_H #define BASE_H #include #include "announcer.h" //Need to include header file for data members. using namespace std; class base { private: announcer b1; announcer b2; public: base(int init_b1, int init_b2): b1 {init_b1}, b2 {init_b2} { cout << "construct base "; print(); cout << "\n"; } ~base() { cout << "destruct base " ; print(); cout << "\n"; } void print() const { //print member function adequate for class base cout << b1 << " " << b2; } void f() const {cout << "f\n";} }; #endif