Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpclscu!shankar From: shankar@hpclscu.HP.COM (Shankar Unni) Newsgroups: comp.lang.c++ Subject: Re: accessing base class protected members Message-ID: <1000008@hpclscu.HP.COM> Date: 13 Feb 89 20:40:39 GMT References: <26619@teknowledge-vaxc.ARPA> Organization: Hewlett-Packard Calif. Language Lab Lines: 27 > class higher : public bottom ^^^^^^ > { > protected: > float hifloat; > > public: > float gethi() { return hifloat; } > > friend void mumble(higher&); > }; The message *is* correct. Since the "public" qualifier is used in the inheritance, the members of "higher" can only access the public members of "bottom". This restriction also carries over to any friends of the derived class. What Mike needs to do to make this do what he wants is to declare "higher" as: class higher : bottom { ... } ---- Shankar