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, setBalance
public InterestAccount()
public InterestAccount(long id)
public void withdraw(double amount) throws AccountException
withdraw
in class Account
AccountException
public void processInterest()
processInterest
in class Account
public double getRate()
public void setRate(double rate)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.