added attributes to the constructor
This commit is contained in:
1 parent
fd1c51f740
commit
b243ab9abb
2 files changed
+14
-3
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
Funktionen:
|
Funktionen:
|
||||||
-ToDo hinzufügen#
|
-ToDo hinzufügen#
|
||||||
-ToDo abhaken
|
-ToDo abhaken#
|
||||||
|
-ToDo deadline
|
||||||
-ToDo löschen
|
-ToDo löschen
|
||||||
-ToDo auflisten#
|
-ToDo auflisten#
|
||||||
-ToDo-Liste abspeichern
|
-ToDo-Liste abspeichern
|
||||||
|
|||||||
@@ -4,12 +4,22 @@ public class ToDo {
|
|||||||
|
|
||||||
int theId;
|
int theId;
|
||||||
String theContent;
|
String theContent;
|
||||||
|
private boolean theDone;
|
||||||
|
String theDeadline;
|
||||||
|
|
||||||
public ToDo(int id, String content){
|
public ToDo(int id, String content, boolean done){
|
||||||
theId=id;
|
theId=id;
|
||||||
theContent=content;
|
theContent=content;
|
||||||
|
theDone=done;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDone(boolean done){
|
||||||
|
theDone=done;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean getDone(){
|
||||||
|
return theDone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user