#ifndef VIRTUAL_BASE_D #define VIRTUAL_BASE_D class CVirtualBaseD { public: virtual void foo() { cout << "This is the foo of Base Class D" << endl; } //... private: //... }; #endif