package cn.edu.bjut.chapter4; public class Teacher extends Person { private String teacherId; // 职工号 private String title; //职称 public Teacher(String id, String name, char gender, String teacherId, String title) { super(id, name, gender); this.teacherId = teacherId; this.title = title; } public String getTeacherId() { return teacherId; } public void setTeacherId(String teacherId) { this.teacherId = teacherId; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } }