No enclosing instance of type Stu is accessible
Posted 一个小菜园子
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了No enclosing instance of type Stu is accessible相关的知识,希望对你有一定的参考价值。
No enclosing instance of type Stu is accessible. Must qualify the allocation with an enclosing instance of type Stu (e.g. x.new A() where x is an instance of Stu).
根据提示,没有可以访问的实例 SxtStu,必须分配一个合适的外部类实例以访问内部类。
正确的方式可以是:
以上是关于No enclosing instance of type Stu is accessible的主要内容,如果未能解决你的问题,请参考以下文章
No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
Java中出现No enclosing instance of type XXX is accessible问题
No enclosing instance of type test is accessible. Must qualify the allocation with an enclosing inst
Java变异出现错误:No enclosing instance of type XXX is accessible
Java中报错No enclosing instance of type caiquan is accessible. Must qualify the allocation with an encl
java出现No enclosing instance of type main is accessible. Must qualify the allocation with an enclosin