Nesting public in private == private?
James R. Coplin
EMAIL HIDDEN
Tue Mar 24 23:04:32 CET 2009
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.
/Micke
_______________________________________________
music-bar mailing list
music-bar at lists.music-bar.org
http://lists.music-bar.org/cgi-bin/mailman/listinfo/music-bar
More information about the music-bar
mailing list