Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!usc!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!eniac.seas.upenn.edu!atteson From: atteson@eniac.seas.upenn.edu (Kevin Atteson ) Newsgroups: comp.lang.c++ Subject: mutual dependence of types Message-ID: <35527@netnews.upenn.edu> Date: 11 Jan 91 01:43:37 GMT Sender: news@netnews.upenn.edu Reply-To: atteson@eniac.seas.upenn.edu (Kevin Atteson ) Distribution: usa Organization: University of Pennsylvania Lines: 29 Is there any way to do the following in C++ and if so how? class A { ... public: class B func1() { ... } }; class B { ... public: class A func2() { ... } }; I don't want to return pointers to the classes. I am a recent initiate to C++ and so I apologize if the question is obvious. Please send responses directly to me and post them if you think it useful. Thanks, Kevin Atteson