Question: [ ToDoList ] Create a to - do list application Create a class called Task that has a field for the name and a boolean

[ToDoList] Create a to-do list application
Create a class called Task that has a field for the name and a boolean field indicating if the task is done or not. Add a getter method for the name and getter & setter for whether or not the task is done.
Create a class called ToDoList that contains a persons name and a list of 5 Task objects. Add methods to add a Task to the list.
Add a print method to the ToDoList class as follows:
print() prints all the tasks in the list
print(boolean done) prints only the tasks that either are done (if the parameter is true) or not yet done (if the parameter is false
Write a driver class that creates a ToDo list and prints its contents

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!