class tescher
{
private String name;
private String num;
private String prof;
private String Gender;
private int age;
public student(String name,String num,String prof){
this.name=name;
this.num=num;
this.prof=prof;
}
public student(String name,String num,String prof,String Gender,int age){
this.name=name;
this.num=num;
this.prof=prof;
this.Gender=Gender;
this.age=age;
}
public void setname(String name){
this.name=name;
}
public void setnum(String num){
this.num=num;
}
public void setprof(String prof){
this.prof=prof;
}
public void setdept(String Gender){
this.Gender=Gender;
}
public void sethours(int age){
this.age=age;
}
public String getname(){
return name;
}
public String getnum(){
return num;
}
public String getprof(){
return prof;
}
public String getdept(){
return Gender;
}
public int gethours(){
return age;
}
public void ShowInfo(){
System.out.println("姓名:"+name);
System.out.println("工号:"+num);
System.out.println("职称:"+prof);
System.out.println("性别:"+Gender);
System.out.println("年龄:"+age);
}
}