Nesting public in private == private?

Mikael Hansson EMAIL HIDDEN
Wed Mar 25 00:20:40 CET 2009


Thanks James!

That seemed like the most logical outcome but I couldn't find anything 
about it in my literature.

/Micke

James R. Coplin skrev:
> They should remain private internals if nested this way.
>
> James R. Coplin
>
> -----Original Message-----
> From: music-bar-bounces at lists.music-bar.org
> [mailto:music-bar-bounces at lists.music-bar.org] On Behalf Of Mikael Hansson
> Sent: Tuesday, March 24, 2009 4:16 PM
> To: Music-bar
> Subject: C++: Nesting public in private == private?
>
> Hi!
>
> I thought there might be a good chance to find someone to answer this 
> here ;)
>
> If I would have a nested class with its attributes declared public, in 
> the private section of the outer class, would the attributes become 
> private to other classes?
>
> This is for making a node class inside a list class. Would another 
> approach be better? The list is not to be made generic, just supposed to 
> store pointers to a specific type.
>   




More information about the music-bar mailing list