阅读背景:

Java基础笔记 – 内部类 静态内部类 成员内部类 局部内部类 匿名内部类anonymous inner classes

来源:互联网 

Anonymous classes enable you to make your code more concise. They enable you to declare and instantiate a class at the same time. They are like local classes except that they do not have a name. Use them if you need to use a local class only once.Anonymous classes enable you to make your code




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: