// in foo.h class foo { private: ..... public: foo* bar; }; // main.cpp #include "foo.h"