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 i
It provides another good encapsulation technique. Placing one class entirely within the namespace of another class reduces its visibility to other parts of your code base. This helps achieve scalability and reduces your maintenance burden.
Function objects are often coded in such a manner.