内部类可以访问类中的变量
匿名内部类:
Interface_type object = new Internew Interface_type()
{
//complete function
}
直接new一个实现接口的类
而不是先创建类再实现对象。
静态内部类:
可以再静态方法中调用静态内部类