public class Account
extends java.lang.Object
| Constructor and Description |
|---|
Account(java.lang.String fName,
java.lang.String lName)
Constructs an Account with the given first and last name of the account holder
|
| Modifier and Type | Method and Description |
|---|---|
void |
deposit(Deposit d)
Adds a deposit to this account
|
double |
getCurrentBalance()
Returns the current available funds in this account
|
double |
getPendingBalance()
Returns pending funds in this account
|
void |
withdraw(double amount)
Removes funds from this account
|
public Account(java.lang.String fName,
java.lang.String lName)
fName - first namelName - last namepublic void deposit(Deposit d)
d - the deposit to addpublic double getCurrentBalance()
public double getPendingBalance()
public void withdraw(double amount)
amount - the amount to remove