-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProject.java
43 lines (37 loc) · 955 Bytes
/
Project.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
import java.util.ArrayList;
public class Project {
private String name;
private String description;
private int hours;
private boolean reserved;
public Project (String name, String description, int hours) {
this.name = name;
this.description = description;
this.hours = hours;
reserved = false;
}
//Getters
public String getName() {
return name;
}
public String getDescription() { return description; }
public int getHours() {
return hours;
}
public boolean isReserved() {
return reserved;
}
//Setters
public void setName(String name){
this.name = name;
}
public void setDescription(String description) {
this.description = description;
}
public void setHours(int hours) {
this.hours = hours;
}
public void setReserved(boolean reserved) {
this.reserved = reserved;
}
}