********************** p1.h ******************************** class TEST_CLASS { private: int x; public: int getX(); } *********************end of p1.h *************************** ********************** p1.cpp ******************************** #include "p1.h" int TEST_CLASS::getX() { return x; } ********************** end of p1.cpp ****************************