2日目 段階6 小澤
This commit is contained in:
@@ -7,9 +7,24 @@ public class EmployeeData {
|
||||
private String password;
|
||||
private String idDepartment;
|
||||
|
||||
public void showInfo() {
|
||||
System.out.println(getIdEmployee() + "\t" + getNmEmployee() + " " + getKnEmployee() + "\t" + getMailAddress()
|
||||
+ "\t" + getPassword() + "\t" + getIdDepartment());
|
||||
@Override
|
||||
public String toString() {
|
||||
return getIdEmployee() + "\t" + getNmEmployee() + " " + getKnEmployee() + "\t" + getMailAddress()
|
||||
+ "\t" + getPassword() + "\t" + getIdDepartment();
|
||||
}
|
||||
|
||||
public EmployeeData() {
|
||||
|
||||
}
|
||||
|
||||
public EmployeeData(String idEmployee, String nmEmployee, String knEmployee, String mailAddress, String password,
|
||||
String idDepartment) {
|
||||
this.setIdEmployee(idEmployee);
|
||||
this.setNmEmployee(nmEmployee);
|
||||
this.setKnEmployee(knEmployee);
|
||||
this.setMailAddress(mailAddress);
|
||||
this.setPassword(password);
|
||||
this.setIdDepartment(idDepartment);
|
||||
}
|
||||
|
||||
public String getIdEmployee() {
|
||||
@@ -35,13 +50,13 @@ public class EmployeeData {
|
||||
public void setKnEmployee(String knEmployee) {
|
||||
this.knEmployee = knEmployee;
|
||||
}
|
||||
|
||||
|
||||
public String getMailAddress() {
|
||||
return this.mailAddress;
|
||||
}
|
||||
|
||||
|
||||
public void setMailAddress(String mailAddress) {
|
||||
this.mailAddress=mailAddress;
|
||||
this.mailAddress = mailAddress;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
@@ -59,7 +74,5 @@ public class EmployeeData {
|
||||
public void setIdDepartment(String idDepartment) {
|
||||
this.idDepartment = idDepartment;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user