| Modifier and Type | Field and Description |
|---|---|
private double |
rate |
| Constructor and Description |
|---|
InterestAccount() |
InterestAccount(long id) |
| Modifier and Type | Method and Description |
|---|---|
double |
getRate() |
void |
processInterest() |
void |
setRate(double rate) |
String |
toString() |
void |
withdraw(double amount) |
deposit, getBalance, getId, setBalancepublic InterestAccount()
public InterestAccount(long id)
public void withdraw(double amount)
throws AccountException
withdraw in class AccountAccountExceptionpublic void processInterest()
processInterest in class Accountpublic double getRate()
public void setRate(double rate)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.