java.lang.ObjectAccount
public class Account
Account class holds the identifier, name and current balance
Constructor Summary | |
---|---|
Account(int num,
float start)
Constructor for objects of class Account |
Method Summary | |
---|---|
int |
getAccountNumber()
Accessor method for account number |
float |
getBalance()
Accessor method for balance |
void |
report()
Print the opening balance. |
boolean |
updateBalance(Transaction t)
Perform a transaction on this account. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Account(int num, float start)
num
- the account numberstart
- the starting balanceMethod Detail |
---|
public int getAccountNumber()
public float getBalance()
public void report()
public boolean updateBalance(Transaction t)
t
- the transaction object