#ifndef BASE_B #define BASE_B class CBaseB { public: void foo() { cout << "This is the foo of Base Class B" << endl; } //... private: //... }; #endif