Attributes:
Methods:
Getters and Setters:
getId()
: Retrieves the user's ID.getPassword()
and setPassword(String pw)
: Access and modify the user's password.Password Validation:
checkPw(String pw)
: Validates the provided password against the stored password.Budget Management:
getBudgetList()
: Retrieves the list of budgets associated with the user.With Budget:
getBudgetList
method allows access to the user's budgets.With LinkedList:
budgets
attribute is implemented as a LinkedList, enabling dynamic storage and management of budgets.