当前位置:首页 > 数据库 > 正文

No enclosing instance of type Stu is accessible

2024-03-31 数据库

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,必须分配一个合适的外部类实例以访问内部类。
正确的方式可以是:

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/12642.html