class Student{
protected String xm;
protected int xh;
void setdata(String m,int h)
{
xm=m;
xh=h;
}
public void print(){
System.out.println(xm+","+xh);
}
class E4_2 extends Student{
protected String xy;
protected String xi;
public static void main(String args[]){
Student p1=new Student();
p1.setdata("张三",12321);
p1.print();
E4_2 s1=new E4_2();
s1.setdata("李四",12345);
s1.xy="信息学院";
s1.xi="信息管理系统";
s1.print();
System.out.print(s1.xm+","+s1.xy+","+s1.xi);
}
}
}
protected String xm;
protected int xh;
void setdata(String m,int h)
{
xm=m;
xh=h;
}
public void print(){
System.out.println(xm+","+xh);
}
class E4_2 extends Student{
protected String xy;
protected String xi;
public static void main(String args[]){
Student p1=new Student();
p1.setdata("张三",12321);
p1.print();
E4_2 s1=new E4_2();
s1.setdata("李四",12345);
s1.xy="信息学院";
s1.xi="信息管理系统";
s1.print();
System.out.print(s1.xm+","+s1.xy+","+s1.xi);
}
}
}