#ifndef __A_H__ #define __A_H__ class B; // forward declaration class A { B *b; // only create pointer/reference to forward public: void add( B &b ); void print(); }; #endif