Test 类
public class Test {
public static void main(String[] args) {
// Father father = new Father("大明","国字脸","大眼睛",180,70);
Son son = new Son("小明",188,72);
Son son1 =new Son();
son.test();
}
}
Son 类
public class Son extends Father{
private String name;
private int tiZhong;
private int shenGao;
public Son() {
// super("大明","国字脸","大眼睛",180,70);
//此处编写super()语句是无效的
}
public Son( String name1, int tiZhong1, int shenGao1) {
super("大明","国字脸","大眼睛",180,70