#ifndef BASE_H #define BASE_H #include using std::cout; using std::endl; class Base{ private: void print_one(){ cout << "one" << endl; } void foo(Base& other){ other.print_one(); } protected: void print_two(){ cout << "two" << endl; } public: void print_three(){ cout << "three" << endl; } }; #endif // BASE_H