From -8818225158042124103
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,2d6fd861b068c0f7
X-Google-Attributes: gid109fba,public
X-Google-Thread: f78e5,2d6fd861b068c0f7
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-05-14 10:43:00 PST
Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: "Chris Newton" <chrisnewton@no.junk.please.btinternet.com>
Newsgroups: comp.std.c++,comp.lang.c++
Subject: Re: Inheritance Problems
Date: Mon, 14 May 2001 17:42:08 GMT
Organization: BT Internet
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <9dp463$123$1@uranium.btinternet.com>
References: <3AFA4600.7656A271@wit.regiocom.net> <9dh57t$uj$1@uranium.btinternet.com> <3afecb3e$0$12249$cc9e4d1f@news.dial.pipex.com>
X-Trace: mail2news.demon.co.uk 989862134 mail2news:11817 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Lines: 20
Xref: archiver1.sj.google.com comp.std.c++:4732 comp.lang.c++:61689

Stuart Golodetz <sgolodetz@dial.pipex.com> wrote...
> Can a B also access another B's private members? Cos
> before I read this I worked on the assumption that it
> was only on a per-object basis...

Yes. (So says 11.2/4 of the standard.)

This idea is often used when writing, e.g., copy constructors and copy
assignment operators.

Cheers,
Chris


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]



