父类
public class Father {
public Father(){
System.out.println("父亲");
}
}
public class Son extends Father{
public Son(){
System.out.println("儿子");
}
public static void main(String[] args) {
//Father father = new Father();
//Father f2=new Son();
Son son=new Son();
}
}