Java-不可以访问foo类型的封闭实例
class Hello {
class Thing {
public int size;
Thing() {
size = 0;
}
}
public static void main(String[] args) {
Thing thing1 = new Thing();
System.out.println("Hello, World!");
}}Thing
No enclosing instance of type Hello is accessible."
倚天杖
慕斯709654
人到中年有点甜
随时随地看视频慕课网APP
相关分类