2日目 段階6 小澤

This commit is contained in:
2026-09-15 15:44:07 +09:00
parent bb15d0a2c6
commit e0c36acb0d
2 changed files with 30 additions and 16 deletions

View File

@@ -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;
}
}