Question: Write a Java program that accomplishes the following. 1. A superclass Bank Account that has the following: balance (attribute), and the following. methods:getBalance(), deposit(),

Write a Java program that accomplishes the following. 1. A superclass Bank Account that has the following: balance (attribute), and the following. methods:getBalance(), deposit(), withdraw(). 2. A checking account that inherits from the Bank Account. In addition, the checking account. has monthly fees. Feel free to determine the monthly fee. The checking account also has the following methods: applyMonthlyfee() and getMonthlyfee(). 3. A savings account that inherits from the Bank Account. In addition, the savings account has an interest rate (feel free to define the rate) and the following methods: applyInterestRate(), SavingsAccount (), and getInterestRate(). classes Based on the above, write a simple Java program that shows the relationships of the above and returns the savings amount based on the current amount in the savings account and the interest rate. Be creative. (15 Points.)
Step by Step Solution
3.52 Rating (165 Votes )
There are 3 Steps involved in it
Here is a Java program that implements the Bank Account Checking Account and Savings Account classes ... View full answer
Get step-by-step solutions from verified subject matter experts
