abc-bank icon indicating copy to clipboard operation
abc-bank copied to clipboard

abc bank solution

Open pallavisj opened this issue 9 years ago • 0 comments

Separate accountType concerns from Account to it's own concrete implementations such as CheckingAccount, SavingAccount, MaxiSavingAccount. Make deposit, withdraw, and transfer functionality thread safe. Fix issues in DataProvider to make it singleton. Make Account class immutable such that it doesn't leak it's state to the outside world unintentionally. deposit(), withdraw(), transfer() change state in a controlled manner which is intentional. Use BigDecimal instead of double for accuracy since we are dealing with money.

pallavisj avatar May 19 '15 02:05 pallavisj