added attributes to the constructor
This commit is contained in:
3
plan.txt
3
plan.txt
@@ -1,6 +1,7 @@
|
||||
Funktionen:
|
||||
-ToDo hinzufügen#
|
||||
-ToDo abhaken
|
||||
-ToDo abhaken#
|
||||
-ToDo deadline
|
||||
-ToDo löschen
|
||||
-ToDo auflisten#
|
||||
-ToDo-Liste abspeichern
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user