Class RegularAccount

java.lang.Object
  extended byBankAccount
      extended byRegularAccount

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 BankAccount
countTransaction, deposit, getBalance, getIssuingBank, getTransactionCount, incrementBalance, requestBalance, withdraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegularAccount

public RegularAccount(int initialBalance,
                      Bank issuingBank)
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.
Method Detail

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