static inner class可以访问类中的所有static变量和方法。
non-static inner class可以访问类中所有变量和方法(包括static和非static)
在方法内声明的局部类可以访问所有类的变量和方法,但只能访问声明为final的方法参数和局部变量