Question: Assume that a CheckingAccount class has a method named withdraw' that takes a double representing the amount of money to be withdrawn from the account.
Assume that a CheckingAccount class has a method named withdraw' that takes a double representing the amount of money to be withdrawn from the account. The method throws a custom exception named OverdrawnException (oe) if the amount to be withdrawn is greater than the account balance. Fill in the blank to complete the code below to catch the exception, assuming that acct' is a CheckingAccount object try t acct.withdraw(100.00); notifyUserCoe.getMessageO)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
