-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy pathTask.java
More file actions
39 lines (31 loc) · 752 Bytes
/
Task.java
File metadata and controls
39 lines (31 loc) · 752 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
package duke;
public class Task {
protected String description;
protected boolean isDone;
public Task(){
this.description = "";
isDone = false;
}
public Task(String description) {
this.description = description;
this.isDone = false;
}
public String getStatusIcon() {
return (isDone ? "X" : " "); // mark done task with X
}
public String getDescription(){
return this.description;
}
public void setDone(){
this.isDone = true;
}
public void setDescription(String description) {
this.description = description;
}
public char getLetter() {
return ' ';
}
public String getDate() {
return " ";
}
}