edu.trinity.cs.bmassing.bank
Class CheckingAccount

java.lang.Object
  extended by edu.trinity.cs.bmassing.bank.Account
      extended by edu.trinity.cs.bmassing.bank.CheckingAccount

public class CheckingAccount
extends Account

Class for checking accounts.


Field Summary
 
Fields inherited from class edu.trinity.cs.bmassing.bank.Account
balance, BANK_ROUTING_NUMBER
 
Constructor Summary
CheckingAccount(long b, java.lang.String n, int a)
          Constructor allowing setting initial values of all variables.
 
Method Summary
 void addInterest()
          Add one month's interest.
 java.lang.String toString()
          Convert information to String.
 
Methods inherited from class edu.trinity.cs.bmassing.bank.Account
deposit, getAccountNumber, getBalance, getName, withdraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckingAccount

public CheckingAccount(long b,
                       java.lang.String n,
                       int a)
Constructor allowing setting initial values of all variables.

Method Detail

toString

public java.lang.String toString()
Convert information to String.

Overrides:
toString in class Account
Returns:
account information (all fields)

addInterest

public void addInterest()
Add one month's interest.

Specified by:
addInterest in class Account