Question: Need to write a java program that has the class BankAccount *MUST HAVE A SMALL MAIN METHOD AT THE END OF THE PROGRAM THAT CALLS
Need to write a java program that has the class "BankAccount"
*MUST HAVE A SMALL MAIN METHOD AT THE END OF THE PROGRAM THAT CALLS THE CLASS*
This program should only have "BankAccount" class with the extensions of Checking, Savings, and Retirement classes.
OUTPUT OF PROGRAM:
This program should ask the user for their balance in their Checking, Savings, And Retirement accounts.
Once the user enters the amounts, the program should ask if the user wants to withdraw, deposit, or transfer money from a specific account.
When the user enters what they want to do(if transfer, have program ask from what account to what account), then the program should ask for what amount.
Once the user enters the amount, the program will display all 3 accounts with the adjusted balance.
Create a minimum of three private data attributes for the class. These can all be primitive variables (int, char, long, double etc..), or they can be reference variables (another class*).
Remember, do not put functionality in your main method that is better done in a class method. *MUST HAVE A SMALL MAIN METHOD*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
