December 2001
Beginner
976 pages
22h 4m
English
![]() | Applying It |
Try to complete the following exercises by yourself.
Extend the methods Withdraw and Transfer of the Person/Account example presented previously to include verification of overdraft (to make sure that there is enough money before making a withdrawal—that the balance after withdrawal is always ≤ 0).
Modify the balance property of the Person class to deal with the case when an invalid account ID is provided in a better fashion (i.e., detect the error and warn the user).
Read now
Unlock full access