-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmployee.java
48 lines (41 loc) · 928 Bytes
/
Employee.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
public class Employee {
private String name;
private String lastname;
private int code;
private double misthos;
public Employee(String name, String lastname, int code, double misthos) {
super();
this.name = name;
this.lastname = lastname;
this.code = code;
this.misthos = misthos;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLastname() {
return lastname;
}
public void setLastname(String lastname) {
this.lastname = lastname;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public double getMisthos() {
return misthos;
}
public void setMisthos(double misthos) {
this.misthos = misthos;
}
@Override
public String toString() {
return getName() + " "+ getLastname() +" "+getCode()+" " +getMisthos();
}
}