package staff;
public class Staff {
private String staId;
private String staName;
private String staSex;
private String staUserName;
private String staPassWord;
public void Staffer(String Id,String Name , String Sex , String UserName ,String PassWord){
staId = Id ;
staName = Name ;
staSex = Sex ;
staUserName =UserName ;
staPassWord = PassWord ;
//Staff staff = new Staff();
System.out.println(staId);
}
public String getStaId() {
return staId;
}
public void setStaId(String staId) {
this.staId = staId;
}
public String getStaname() {
return staName;
}
public void setStaname(String staname) {
this.staName = staname;
}
public String getStaPassWord() {
return staPassWord;
}
public void setStaPassWord(String staPassWord) {
this.staPassWord = staPassWord;
}
public String getStaSex() {
return staSex;
}
public void setStaSex(String staSex) {
this.staSex = staSex;
}
public String getStaUserName() {
return staUserName;
}
public void setStaUserName(String staUserName) {
this.staUserName = staUserName;
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO 自动生成方法存根
Staff[] staff = new Staff[3];
staff[0] sta=new Staffer();
sta =new String("1000","luyihua","男","zhongguo" ,"123456");
staff[1] sta=new Staff1();
sta =new String("1000","luyihua","男","zhongguo" ,"123456");
staff[2] sta=new Staff1();
sta =new String("1000","luyihua","男","zhongguo" ,"123456");
for(int i = 0 ; i < staff.length ;i ++ ){
System.out.println(staff[i].getStaId());
}
}
}