6段階目(toStringをオーバーライドしよう)
This commit is contained in:
@@ -23,10 +23,11 @@ public class EmployeeData {
|
||||
this.setIdDepartment(idDepartment);
|
||||
}
|
||||
|
||||
void showInfo() {
|
||||
System.out.println(this.idEmployee + "\t" + this.nmEmployee
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.idEmployee + "\t" + this.nmEmployee
|
||||
+ "\t" + this.knEmployee + "\t" + this.mailAddress
|
||||
+ "\t" + this.password + "\t" + this.idDepartment);
|
||||
+ "\t" + this.password + "\t" + this.idDepartment;
|
||||
}
|
||||
|
||||
public String getIdEmployee() {
|
||||
|
||||
Reference in New Issue
Block a user