1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
class A { int A = 999; A() { System.out.println("111"); } A(int num) { System.out.println("222"); } static { System.out.println("000"); } int A() { System.out.println("333"); return A; } void A(int A) { System.out.println("444"); this.A = A; } void A(A A) { System.out.println("555"); this.A = A.A; } } public class Java_107_03_21 { public static void main(String[] args) { // TODO 自動產生的方法 Stub A a = new A(); a = new A(1); a.A(); a.A(999); a.A(a); System.out.println(a.A); } } |