C++: Nesting public in private == private?

Mikael Hansson EMAIL HIDDEN
Tue Mar 24 22:16:13 CET 2009


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.

/Micke



More information about the music-bar mailing list