Description
Big Java Chapter 8 Programming Exercise P8.4 BankAccount
Enhance the BankAccount class by adding preconditions for the constructor and the deposit method that require the amount parameter to be at least zero, and a precondition for the withdraw method that requires amount to be a value between 0 and the current balance. Use assertions to test the preconditions.
Reviews
There are no reviews yet.