Implement a class Bank.

 Implement a class Bank. This bank has two objects
  • checking
  • andsavings
of the type 
Account
that was developed in the preceding exercise.
Implement four instance methods:
deposit(double amount, String account)withdraw(double amount, String account)transfer(double amount, String account) printBalances()
Here the account string is
"S"
or
"C"
. For the deposit or withdrawal, it indicates which account is affected. For a transfer it indicates the account from which the money is taken; the money is automatically transferred to the other account.

Comments

Popular posts from this blog

Access AHIMA: What is Health Information

Discuss the notion that firms should stop doing business with customers who constantly generate losses versus the notion that the customer is always right.

Discern leadership approaches that facilitate achievement of health outcomes through interprofessional collaborative practice within micro-, meso-, and macro-level systems