Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use java please 2. Modify the BankAccount class previously created to add two methods: deposit and withdraw. These will be used to deposit of withdraw
use java please
2. Modify the BankAccount class previously created to add two methods: deposit and withdraw. These will be used to deposit of withdraw money from the bank account. Extend the BankAccount class to create two types of bank accounts: a checking account and a savings account. These will inherit the properties of bank account class, but have the following unique behavior: when money get deposited into the savings account, an automatic 1% interest is added to the deposited amount The savings account does not allow withdraw When money get withdrawn from the checking account, a withdrawing fee of $1 is applied. To test the functionalities of the BankAccount, CheckingAccount and SavingsAccount classes a class called BankTest will be created. This class will have a main method which will be used to: Lab 8: Classes (GUI) Create at least one instance of each bank account type, i.e BankAccount, CheckingAccount and SavingsAccount Deposit/withdraw money from these accounts Display (output) the balance and interest values from these accountsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started