Class RegularAccount
java.lang.Object
BankAccount
RegularAccount
- public class RegularAccount
- extends BankAccount
A RegularAccount is a BankAccount that has no special behavior.
It does what a BankAccount does.
Constructor Summary |
RegularAccount(int initialBalance,
Bank issuingBank)
Construct a BankAccount with the given initial balance and
issuing Bank. |
Method Summary |
void |
newMonth()
Action to take when a new month starts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegularAccount
public RegularAccount(int initialBalance,
Bank issuingBank)
throws InsufficientFundsException
- Construct a BankAccount with the given initial balance and
issuing Bank. Construction counts as this BankAccount's
first transaction.
- Parameters:
initialBalance
- the opening balance.issuingBank
- the bank that issued this account.
- Throws:
InsufficientFundsException
- when appropriate.
newMonth
public void newMonth()
- Action to take when a new month starts.
A RegularAccount does nothing when the next month starts.
- Specified by:
newMonth
in class BankAccount