Class PiggyBank
java.lang.Object
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)
|
Methods inherited from class |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PiggyBank
public PiggyBank()
- Constructor for objects of class BankAccount
PiggyBank
public PiggyBank(double initialBalance,
String name)
depositToAcct
public void depositToAcct(double dAmount)
getBalance
public double getBalance()
withdrawFromAcct
public void withdrawFromAcct(double balance)