Question: Create a class called Bank. It should have a variable for amount, a method for deposit and a method for withdrawal. There should also be
Create a class called Bank. It should have a variable for amount, a method for deposit and a method for withdrawal. There should also be an array of doubles that keeps track of every deposit or withdrawal. Create a method called listInteractions that prints the array of deposits and withdrawals. The deposits should be positive and the withdrawals should be negative.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
