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