Subj : Re: class declaration help To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Fri Aug 29 2003 08:50 am You can use an incomplete declaration which identifies B as the name of a class type. For instance: -------------------- class B; class A{ public: A(); void Print(B b); int x; }; class B{ void Multiply(A a); int r; }; -------------------- .. Ed > detritus wrote in message > news:3f4f312d@newsgroups.borland.com... > > In the following 2 class definitions, the compiler dose not > recognise that class B exists while compiling class A. Is > there a simple way around this problem? > > class A{ > public: > A(); > void Print(B b); > int x; > }; > > class B{ > void Multiply(A a); > int r; > }; .