/**
* 医生类
*/
/**
* @author Administrator
*
*/
public class Doctor {
/**
* 姓名
*/
private String name;
/**
* 编号
*/
private String idNumber;
/**
* 地址
*/
private String address;
/**
* 自我介绍的方法
*/
public void introduce(){
System.out.println("大家好,我是一名医生,我来做个自我介绍");
System.out.println("我的名字是"+this.getName());
System.out.println("我的编号是"+this.getIdNumber());
System.out.println("我住在"+this.getAddress());
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the idNumber
*/
public String getIdNumber() {
return idNumber;
}
/**
* @param idNumber the idNumber to set
*/
public void setIdNumber(String idNumber) {
this.idNumber = idNumber;
}
/**
* @return the address
*/
public String getAddress() {
return address;
}
/**
* @param address the address to set
*/
public void setAddress(String address) {
this.address = address;
}
}