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 double
rate
-
Constructor Summary
Constructors Constructor Description InterestAccount()
InterestAccount(long id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getRate()
void
processInterest()
void
setRate(double rate)
String
toString()
void
withdraw(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:
withdraw
in classAccount
- Throws:
AccountException
-
processInterest
public void processInterest()
- Overrides:
processInterest
in classAccount
-
getRate
public double getRate()
-
setRate
public void setRate(double rate)
-
-