- Main:
Task.java
(immutable),TaskList.java
(mutable). - Tests:
TaskTest.java
.
- Add
removeTask(String id)
toTaskList
. Test it. - Add
isComplete
field toTask
(immutable). Test it. - Write a test in
TaskTest
forequals
with different IDs. - Add
clearTasks()
toTaskList
. Test it. - Prepare a 1–2 min explanation on encapsulation (e.g., why
Task
hides fields).
- Main:
User.java
(immutable),ProfileManager.java
(mutable). - Tests:
UserTest.java
.
- Add
removeProfile(String username)
toProfileManager
. Test it. - Add
displayName
field toUser
(immutable). Test it. - Write a test in
UserTest
forequals
with different emails. - Add
updateProfile(User user)
toProfileManager
. Test it. - Prepare a 1–2 min explanation on encapsulation (e.g., why
User
hides data).
- Main:
Event.java
(immutable),Scheduler.java
(mutable). - Tests:
EventTest.java
.
- Add
cancelEvent(String id)
toScheduler
. Test it. - Add
title
field toEvent
(immutable). Test it. - Write a test in
EventTest
forequals
with different times. - Add
listEvents()
toScheduler
(returns event IDs). Test it. - Prepare a 1–2 min explanation on encapsulation (e.g., why
Event
hides fields).