日期:2014-05-20 浏览次数:20827 次
public class two extends A{
int fun2() {
return 456;
}
public static void main(String[] args) {
two b = new two();
b.fun1();
A a = b;
a.fun1();
}
}
class A {
void fun1() {
System.out.println(fun2());
}
int fun2() {
return 123;
}
}