BasicAccount.java is the base class of a package of bank accounts. This class is abstract.
ConstructorReceives: the name of the person owning the account:
Postcondition: I have been created with no balance, no interest, and the name has been set:
Accessor to retrieve the name of the account ownerReturn: name
Accessor to retrieve the account balanceReturn: current balance
Accessor to retrieve the account interest rateReturn: rate
Basic mutator method to handle monthly fees and creditsPostcondition: computeFees and computedInterest have been called and the account balance has been changed accordingly.
Basic method to compute monthly feeReturns: the fee amount to be levied against the account.
Basic method to compute monthly interestReturns: the interest amount to be added to the account.
String converter (output)Return: the String which gives a nice presentation of the account information.
Back to the package documentation index