Write a class that acts like a bank called UnrestrictedBank()
. Assume a bank where every transaction is possible but the balance should still be monitored correctly.
The bank keeps a few pieces of information:
accountNumber
accountHolder
balance
If an account is made these values should be set for the account.
The account sould also have some functionality:
getAccountNumber()
getAccountHolder()
getBalance()
deposit(double amount)
withdraw(double amount)
main()
method.Doomsday for dividends - Telegraph1