C++ - What's the point of nested classes?
I'm studying a little of C++ and now I'm fighting against it's similitudes with Java. I know the purpose of inner classes in Java, but now I'm trying to use nested classes in C++, and I discover that private attributes of "container" class are not visibile by nested class , so why I should use them? Also, is there a way to make visibile those attributes? Adriano Repetti I'm studying a little of C++ and now I'm fighting against it's similitudes with Java. First of all be aware that C++ nested classes are similar to what in Java you call static nested classes . There isn't anything in C++ syntax