Description : Modify Account Class: Figure 3.8 & 3.9
: provide withdraw method : ensure withdrawal amount does not exceed Account balance : else "withdrawal amount exceeded acct balance"
: Modify AccountTest to test method withdraw
Fig. 3.8: Account.java Account class with a double instance variable balance and a constructor deposit method that performs validation
You'll get a 5.0KB .ZIP file.