日期:2014-05-20 浏览次数:20741 次
public class TestQuestion1 {
public static void main(String[] args) {
new c().visit();
}
}
class b{
int a = 4;
public void v() {
System.out.println(this.a);
System.out.println(this.getClass());
}
}
class c extends b {
int a = 6;
public void visit() {
super.v();
}
}