Re: [Dev-C++] protected and private in c++ classes
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2004-03-09 11:35:27
|
That sounds about right :) >From: Oladipo Odumosu <gen...@ya...> >To: Daniel Glenfield <sp...@ho...> >Subject: Re: [Dev-C++] protected and private in c++ classes >Date: Tue, 9 Mar 2004 11:06:28 +0000 (GMT) > >private members cannot be accessed except by member methods/functions of >the class they belong to. they also cannot be inherited. protected members >are almost exactly like private, but they can be inherited. inheriting a >protected member are private makes it private in the derived class. >inheriting a protected member as public leaves it as protected. > >plz lemme know if i'm wrong, too > > >--------------------------------- >Too much spam in your inbox? Yahoo! Mail gives you the best spam protection >for FREE! Get Yahoo!Mail _________________________________________________________________ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo |