Copyright © 2002 HYWY
Software Corporation
Gopalan Suresh Raj
Chief Architect, HYWY Software
Step 3-F: Add Business Logic
The Savings class:
Modify constructor
–
public Savings() {
–
super();
–
this.accountType_ = Account.SAVINGS_ACCOUNT_;
–
}
Add logic to calculateInvestments() method
–
public int calculateInterest() {
–
return this.balance_ * this.interestRate_/100;
–
}