Question: Question 2 [ 2 5 pts ] [ 2 5 pts ] Create a BankAccountTest class that contains a main ( ) method that instantiates
Question
pts
pts
Create a BankAccountTest class that contains a main method that instantiates an object of type BankAccount, with account number of account holder name of "John Doe", initial balance of $ and account type as SAVINGS. Then use the deposit and withdraw methods of the object to deposit $ and withdraw $ Finally, use the getAccountInfo method to print the current account information.
Use the getAccountInfo method to verify that the deposit and withdrawal actions are performed correctly and that the account information is updated accordingly.
Use the getAccountInfo method to verify that the deposit and withdrawal actions are performed correctly and that the account information is updated accordingly.
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
