摘要: 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 ... 阅读全文
posted @ 2012-03-08 19:57 没出没 阅读(361) 评论(0) 推荐(0) 编辑