Class StudentCheckingAccount
java.lang.Object
com.dada.banking_project.models.Accounts.Account
com.dada.banking_project.models.Accounts.CheckingAccount
com.dada.banking_project.models.Accounts.StudentCheckingAccount
-
Constructor Summary
ConstructorDescriptionStudentCheckingAccount
(BigDecimal balance, String primaryOwner, String secondaryOwner, String status, AccountHolder accountHolder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setMinimumBalance
(BigDecimal minimumBalance) Set the minimum balance for this Checking account.void
setMonthlyMaintenanceFee
(BigDecimal monthlyMaintenanceFee) This method sets the monthly maintenance fee for the checking account.Methods inherited from class com.dada.banking_project.models.Accounts.Account
checkBalance, checkOwnerName, setSecretKey
-
Constructor Details
-
StudentCheckingAccount
public StudentCheckingAccount(BigDecimal balance, String primaryOwner, String secondaryOwner, String status, AccountHolder accountHolder) -
StudentCheckingAccount
public StudentCheckingAccount()
-
-
Method Details
-
setMonthlyMaintenanceFee
Description copied from class:CheckingAccount
This method sets the monthly maintenance fee for the checking account. If the given monthly maintenance fee is less than the default value of 12, an IllegalArgumentException is thrown.- Overrides:
setMonthlyMaintenanceFee
in classCheckingAccount
- Parameters:
monthlyMaintenanceFee
- The monthly maintenance fee to set.
-
setMinimumBalance
Description copied from class:CheckingAccount
Set the minimum balance for this Checking account.- Overrides:
setMinimumBalance
in classCheckingAccount
- Parameters:
minimumBalance
- The minimum balance to set, must be greater than or equal to 250.
-