On Wed, 04 Jun 2008 10:13:36 -0700, cfps.Christian <ge*******@otc.edu>
wrote:
My understanding is that you can't declare a class private or
protected because private would mean that nothing could use it outside
of itself and thus it would be a useless class. Protected would say
that this class can only be used by another class that inherits from
it, but if its protected nothing can inherit from it also making it a
useless class.
But none of that is really true.
Whether it even pertains to Tony's question I don't know...his original
question was vague and lacking the context needed to really understand
what the book was saying.
But nested classes can in fact be protected or private and those access
modifiers in that context can in fact be useful.
Pete