62,614
社区成员
发帖
与我相关
我的任务
分享
class Father{
private void hello(){
System.out.println("hello father!");
}
public void f1(){
this.hello();
}
}
class Son extends Father{
public void hello(){
System.out.println("hello son!");
}
}
public class Test{
public static void main(String[] args){
student1.f1();
}
}