Please review the following resources before lecture:
[Object-oriented Programming in 7 minutes | Mosh (Video)](https://www.youtube.com/watch?v=pTB0EiLXUC8) |
Your task for this assignment is add enhancements to an ATM simulator. The BankAtm is at the center of the model, allowing us to add one or more CheckingAccount
instances and make withdrawals or deposits via cash or check. You will need to implement at least two of the following functional enhancements to the BankAtm
class WITHOUT adding a new method. Note that you can update existing methods, however.
SavingsAccount
that works just like the CheckingAccount
, but doesn’t allow you to write checks against the account.BankAtm
class to support the concept of a BusinessCheckingAccount
. A business account requires that at least one of the owning accounts is a business.MoneyOrder
. Unlike a Check
, a MoneyOrder
withdraws funds from a source account immediately on creation for the purposes of this simulation..BankAtm
class should logged. Create an AuditLog
class that keeps a record of all debits and credits to any account and integrate it with the BankAtm
class.depositFunds
method that accepts a cash amount, we’d like the ability to deposit funds in a variety of currencies. Add a parameter that accepts a currency type and a new object that encapsulates the currency converter logic for converting a cash amount to the account currency type.BankAtm
without adding a new public method. Existing public methods may be modified without breaking existing functionality.BankAtm
tests and may modify or add other applicable tests.