Question: Exercise ( 2 ) Write a TestBankAccount class with a main ( ) method. In the main method do the following: Create 2 objects of

Exercise
(2) Write a TestBankAccount class with a main()
method. In the main method do the following:
Create 2 objects of BankAccount Class: 3000 AED for the
first, 10000 AED for the second. Suggest your own values
for account number.
Create another object that is a copy of the first object.
Withdraw 6000 AED from the first account, and 5000
AED from the second account.
Print the account number, the balance and the last
transaction of all account objects.
Print the number of accounts in the bank and the total
balances.
using java.
 Exercise (2) Write a TestBankAccount class with a main() method. In

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!