added attributes to the constructor

This commit is contained in:
Dejan
2021-08-21 22:04:49 +02:00
parent fd1c51f740
commit b243ab9abb
2 changed files with 14 additions and 3 deletions

View File

@@ -4,12 +4,22 @@ public class ToDo {
int theId;
String theContent;
private boolean theDone;
String theDeadline;
public ToDo(int id, String content){
public ToDo(int id, String content, boolean done){
theId=id;
theContent=content;
theDone=done;
}
public void setDone(boolean done){
theDone=done;
}
public boolean getDone(){
return theDone;
}
}