What kind of situation should i use nested class in?

As the topic title says what kind of situation or situations i should use nested classes in?

i cant really seem to think of one that cant be done by any other way.
Nested classes are never necessary. I rarely use them. I guess one reason to use a nested class is if you want hide the class so that only the enclosing class can use it.
hmm al right that sounds good enough one more question what kind of a situation should i use public inheritance in?
When should you not use public inheritance? I have never used private or protected inheritance and I can't see when you want to use them.
nope i meant when should i use public inheritance. any particular reason? or a link to public inheritance would be good,
Topic archived. No new replies allowed.