Write a class called Account
, which represents a
banking account. This should at least have a field called balance
which stores the balance of the account, and methods
for deposit
and withdraw
.
Your withdraw
method should throw
a InsufficientFunds
exception if there is not enough
funds in the account.