Skip to content

Commit 6a59629

Browse files
author
AmiyahJo
committed
feat: new getDetails added
1 parent 0b9908f commit 6a59629

File tree

1 file changed

+7
-6
lines changed
  • lesson_15/tdd/tdd_app/src/main/java/com/codedifferently/lesson15

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.codedifferently.lesson15;
22

3-
import java.io.Console;
4-
53
public class Employee {
64
private int id;
75
private String name;
@@ -47,10 +45,13 @@ public double getSalary() {
4745
public void setSalary(double salary) {
4846
this.salary = salary;
4947
}
50-
public String getDetails() {
51-
return details;
48+
49+
public void details(){
50+
System.out.println(getDetails());
5251
}
53-
public void getDetails(String details){
52+
53+
public String getDetails(){
5454
return "The employee, " +name+ " in " +department+ " with the id of " +id+ " has a salary of " +salary+ " .";
55-
}
55+
}
56+
5657
}

0 commit comments

Comments
 (0)