摘要:
1 class Base 2 { 3 int a = 1; 4 void display() 5 { 6 System.out.println("base"); 7 } 8 } 9 10 class Derive extends Base11 {12 int a = 2;13 int b = 3;14 void display()15 {16 System.out.println("derive");17 }18 void displayA()19 {20 ... 阅读全文