在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 不用內部類 方法二:給內部
相關文章
相關標籤/搜索