Am Tuesday, den 14. August 2001 22:04:25 schrieb Tony Godshall:
> On Wed, Aug 15, 2001 at 01:30:09PM +0900, eric wrote:
> > 
> > Hello there,
> > 
> > I'm fairly new to c++programming, and I'm sure the question I'm going to ask
> > has a very very simple answer but since I don't know it, and have searched
> > on the Internet for an answer, without success, I thought I'd try e-mailing
> > yourself.
> > 
> > Put simply:
> > 
> >  I have two classes.
> > 
> > 1/  Class A is the main class, and is realized as object A,
> > 2/  object B is created from class B in one of the member functions of
> > object A.
> > 
> > I simply want to access some other member functions of object B, by any of
> > the member functions in object A.
> > 
> > If you could tell me how to do this, I'd really appreciate it.

> Make the methods public.

Declare B a friend of A or declare the member-functions of B you want
to access friends of A.

BTW: wrong mailinglist.

        MfG
        bmg

-- 
"Des is v�llig wurscht, was heut beschlos- | M G Berberich
 sen wird: I bin sowieso dagegn!"          | [EMAIL PROTECTED]
(SPD-Stadtrat Kurt Schindler; Regensburg)  |

PGP signature

Reply via email to