public class Person {
private String name ;
private int age;
public Person(String name, int age){
this.name = name;
this.age = age;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
}public class Student extends Person {
public Student (String name,int age) {
super (name,age);
}
}
public class JiChengDemo {
public static void main(String[] args){
Student std1 = new Student("小张",14);
System.out.println();
}
}
运行后什么都没有显示,这是哪儿的原因??求解