Class InterestAccount
- java.lang.Object
-
- ejava.examples.orm.inheritance.annotated.Account
-
- ejava.examples.orm.inheritance.annotated.InterestAccount
-
-
Field Summary
Fields Modifier and Type Field Description private doublerate
-
Constructor Summary
Constructors Constructor Description InterestAccount()InterestAccount(long id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetRate()voidprocessInterest()voidsetRate(double rate)StringtoString()voidwithdraw(double amount)-
Methods inherited from class ejava.examples.orm.inheritance.annotated.Account
deposit, getBalance, getId, setBalance
-
-
-
-
Method Detail
-
withdraw
public void withdraw(double amount) throws AccountException- Specified by:
withdrawin classAccount- Throws:
AccountException
-
processInterest
public void processInterest()
- Overrides:
processInterestin classAccount
-
getRate
public double getRate()
-
setRate
public void setRate(double rate)
-
-