摘要:
Java的内部类语法比较复杂,只有内部静态类,而没有静态类。public class Hello { public class Child { public Child() {} public void sayHello() { System.out.println("Hello from child!"); } } public static void main(String[] args) { System.out.println("Hello, World!"); Hello h = new Hello(); Child child = h.new 阅读全文