Skip to content

Commit 646073d

Browse files
committed
feat: update setDetails method in Employee class to include employee ID
1 parent a30c187 commit 646073d

File tree

1 file changed

+2
-1
lines changed
  • lesson_15/tdd/tdd_app/src/main/java/com/codedifferently/lesson15

1 file changed

+2
-1
lines changed

lesson_15/tdd/tdd_app/src/main/java/com/codedifferently/lesson15/Employee.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public String getDetails() {
3535
}
3636

3737
// Method to set all employee details at once
38-
public void setDetails(String name, String department, double salary) {
38+
public void setDetails(String name, String department, double salary, int id) {
39+
this.id = id;
3940
this.name = name;
4041
this.department = department;
4142
this.salary = salary;

0 commit comments

Comments
 (0)