C/C++教程

teacher

本文主要是介绍teacher,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

public class Teacher extends Person {

public static int count = 0;
private String tescherId;
private String university;

public Teacher(String name) {
super(name);
count++;
}

public String getTescherId() {
return tescherId;
}
public void setTescherId(String tescherId) {
this.tescherId = tescherId;
}
public String getUnit() {
return university;
}
public void setUnit(String university) {
this.university = university;
}
public void work() {
System.out.println(name + “在教学”);
}

}

这篇关于teacher的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!