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
All Implemented Interfaces:
HasPersonInfo

public class SavingsAccount
extends Account


Field Summary
 
Fields inherited from class edu.trinity.cs.bmassing.bank.Account
balance, BANK_ROUTING_NUMBER
 
Constructor Summary
SavingsAccount(double balance, double interestRate, java.lang.String accountHolderName, java.lang.String[] accountHolderAddress, int accountNumber)
          Constructor allowing setting initial values of all variables.
 
Method Summary
 double addInterest()
          Compute and add interest.
 
Methods inherited from class edu.trinity.cs.bmassing.bank.Account
deposit, getAccountNumber, getAddress, getBalance, getName, main, withdraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SavingsAccount

public SavingsAccount(double balance,
                      double interestRate,
                      java.lang.String accountHolderName,
                      java.lang.String[] accountHolderAddress,
                      int accountNumber)
Constructor allowing setting initial values of all variables.

Method Detail

addInterest

public double addInterest()
Compute and add interest.

Specified by:
addInterest in class Account
Returns:
new balance