Class PiggyBank

java.lang.Object
  extended by PiggyBank

public class PiggyBank
extends Object

A bank account has a balance and an owner who can make deposits to and withdrawals from the account.


Constructor Summary
PiggyBank()
          Constructor for objects of class BankAccount
PiggyBank(double initialBalance, String name)
           
 
Method Summary
 void depositToAcct(double dAmount)
           
 double getBalance()
           
 void withdrawFromAcct(double balance)
           
 
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PiggyBank

public PiggyBank()
Constructor for objects of class BankAccount


PiggyBank

public PiggyBank(double initialBalance,
                 String name)
Method Detail

depositToAcct

public void depositToAcct(double dAmount)

getBalance

public double getBalance()

withdrawFromAcct

public void withdrawFromAcct(double balance)