4- Create class called savingAccount that extends class Account. It has one more data which is interestRate(double).
5- Add constructor that receives four parameters: id, name, balance, interest rate. Validate that interest rate is greater than zero, and add setter,getter methods.
6- Add method calcInterset that calculates the interest as follows
interest=balance*interest rate.
1
Expert's answer
2016-04-27T10:30:01-0400
Dear Nithya, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment