@Entity public abstract class Account extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
deposit(double amount) |
double |
getBalance() |
long |
getId() |
void |
processInterest() |
void |
setBalance(double balance) |
String |
toString() |
abstract void |
withdraw(double amount) |
public long getId()
public double getBalance()
public void setBalance(double balance)
public void deposit(double amount)
throws AccountException
AccountExceptionpublic abstract void withdraw(double amount)
throws AccountException
AccountExceptionpublic void processInterest()
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.