BasicAccount.java is the base class of a package of bank accounts. This class is abstract.
Receives: 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 owner
Accessor to retrieve the account balance
Return: current balance
Accessor to retrieve the account interest rate
Basic mutator method to handle monthly fees and credits
Postcondition: computeFees and computedInterest have been called and the account balance has been changed accordingly.
Basic method to compute monthly fee
Returns: the fee amount to be levied against the account.
Basic method to compute monthly interest
Returns: 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
Back to the Introduction