edu.trinity.cs.bmassing.bank
Class SavingsAccount

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

public class SavingsAccount
extends Account

Class for savings accounts.


Field Summary
 
Fields inherited from class edu.trinity.cs.bmassing.bank.Account
balance, BANK_ROUTING_NUMBER
 
Constructor Summary
SavingsAccount(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

SavingsAccount

public SavingsAccount(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