class Person
{
public String name;
public int age;
Person(String name,int age)
{
this.name=name;
this.age=age;
}
public void setinfo()
{
System.out.println("name="+name+",age="+age);
}
}
class student extends Person
{
public String school;
student()
{
super("chengsheng",15);
}
}
class teststudent
{
public static void main(String args [])
{
student st=new student();
st.name="Nioko";
st.age=20;
st.setinfo();
}
}
这个程序的构造函数的调用是怎么调用的啊 我有点不明白啊 望 指点