在main函数中创建新对象时出错 No enclosing instance of type ooo is accessible. Must qualify the allocation with a

错误原因:No enclosing instance of type ooo is accessible. Must qualify the allocation with an enclosing instance of type ooo (e.g. x.new A() where x is an instance of ooo). 方法: 方法一:分为两个class 不用内部类 方法二:给内部
相关文章
相关标签/搜索