Question
Appendix A: Banking program (This program is available for downloading) Write your code as indicated. This code will not compile until you complete writing your
Appendix A: Banking program
(This program is available for downloading)
Write your code as indicated. This code will not compile until you complete writing your code.
You should not modify the TestBank class.
public class TestBank { public static void main(String[] args){
Bank bank = new Bank();
bank.enterCustomers();
System.out.println();
System.out.println("==========================");
System.out.println("Opening account balance");
bank.printBalances();
System.out.println();
bank.banking();
System.out.println();
System.out.println("==========================");
System.out.println("Closing account balance");
bank.printBalances(); } }
class Bank { // write your code here }
class Account { // write your code here }
Banking Program You will create two Java classes to support the test program TestBank.java, which is provided in Appendix A. You will create two classes, Account and Bank. You should not modify the TestBank class as provided. Task 1: Account class You create your Account class according to the following requirements. Two attributes: name and balance to store customer's name and balance. They should not be directly accessed outside of the class; 1. 2. A constructor with two parameters for the name and balance 3. Two getter methods: getName and getBalanceStep 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