阅读背景:

No enclosing instance of type Outer is accessible. Must qualify the allocation with an enclosing instance of type Outer (e.g. x.new A() where x is an instance of Outer)

来源:互联网 

之前看内部类的时候没发现这个问题,今天写代码的时候遇到,写个最简单的例子:

下面这一段代码




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

分享到: