forked from MohammadSianaki/Design-Pattern-In-Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDesigner.java
More file actions
42 lines (34 loc) · 779 Bytes
/
Copy pathDesigner.java
File metadata and controls
42 lines (34 loc) · 779 Bytes
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
import java.util.List;
class Designer implements Employee {
private String name;
private double salary;
private List<String> roles;
public Designer(String name, double salary) {
this.name = name;
this.salary = salary;
}
@Override
public String getName() {
return this.name;
}
@Override
public void setName(String name) {
this.name = name;
}
@Override
public double getSalary() {
return this.salary;
}
@Override
public void setSalary(double salary) {
this.salary = salary;
}
@Override
public List<String> getRoles() {
return this.roles;
}
@Override
public void setRoles(List<String> roles) {
this.roles = roles;
}
}