Originally posted by Kevin Yip:
The fact is:
Methods, no matter static or not, cannot have static members. Think of the inner class as a 'member' of the enclosing method.
The reason is:
The scope of the method is local. When the method call returns, everything inside becomes out of scope. So you cannot define a class level member inside.
Originally posted by Charlie Swanson:
The static method below had a static class defined in it. But the compiler did not like it? Why?