Question: In java programming language 1. Start with the following class. public class BankAccount public void deposit(double anount) ( balance +amount; h public void withdraw(double amount)
1. Start with the following class. public class BankAccount public void deposit(double anount) ( balance +amount; h public void withdraw(double amount) (balance - amount; h public double getBalance) return balance; private double balance; A checking account is just like a bank account, except that there is a service charge for deposits and withdrawals. Each month, the first five transactions are free. All further transactions cost $1. Define a subclass CheckingAccount with a constructor CheckingAccount (double initialBalance) and a method void deductFees() that deducts the fees and resets the transaction count. (The bank computer will call this method once a month. There is no transaction charge for deducting the fees.) You will also need to redefine the deposit and withdraw method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
