Subj : Re: class declaration help To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Fri Oct 03 2003 04:39 pm > FYI, those are called "forward" declarations. The error you receive after using that "forward declaration" as a type parameter in a templated class or function definition prior to the full definition will quickly show you that it is an "incomplete declaration". That is why I prefer to call it an incomplete declaration. .. Ed > Jeff Kish wrote in message > news:fe6rnv4dkh7plt6j2m9809eg37cgoinrcv@4ax.com... > > > >>Ed Mulroy wrote in message > >>news:3f4f3df8$1@newsgroups.borland.com... > >> 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; > >> }; > >> > >> -------------------- > > FYI, those are called "forward" declarations. .