-------------------------
Account: 1234567
CurrentBalance: -300.00
Account Status: closed
-------------------------
Now the AccountStatus has been set to closed by the listener and further attempts to
make withdrawals are blocked without triggering the event:
withdraw(BA,100)
Account 1234567 has been closed.
If the AccountBalance is returned to a positive value by a deposit, then the
AccountStatus is returned to open and withdrawals are allowed again:
deposit(BA,700)
getStatement(BA)
-------------------------
Account: 1234567
CurrentBalance: 400.00
Account Status: open
-------------------------
3 MATLAB Classes Overview