Static nested class

From: newbiecpp (
Date: 08/15/04

Date: Sat, 14 Aug 2004 23:25:37 GMT

Java can declare a static nested class. Does C++ have same thing like?

class Outer {
     static class Inner {


I can compile this code. But my question is what's difference between Java
and C++ in term of static nested class? In which case, it is good design to
use static nested class?

Thanks in advance.