What kind of situation should i use nested class in?
Jan 23, 2012 at 6:15am UTC
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.
Jan 23, 2012 at 6:38am UTC
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.
Jan 23, 2012 at 6:43am UTC
hmm al right that sounds good enough one more question what kind of a situation should i use public inheritance in?
Jan 23, 2012 at 6:49am UTC
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.
Jan 23, 2012 at 6:51am UTC
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.