摘要:
1 public class XZ 2 { 3 static class b 4 { 5 public static void main(String[] args) { 6 // TODO Auto-generated method stub 7 System.out.println("test"); 8 } 9 }10 }这种写法也是正确的 阅读全文
摘要:
1 class X 2 { 3 X() 4 { 5 System.out.println("x"); //2 6 } 7 Y y=new Y(); //1 8 } 9 class Y10 {11 12 Y()13 {14 System.out.println("y");15 }16 }17 class Z extends X{18 19 /**20 * @param args21 */22 ... 阅读全文