/** * @param client * @param amount */ @Override public void withdraw(Client client, float amount) throws UnsupportedOperationException { super.authorize(client); if (this.getBalance(client) > amount) { super.withdraw(client, amount); } else { throw new UnsupportedOperationException("insufficient balance"); } }
/** * @param client * @return */ public BasicAccountType getType(Client client) throws UnsupportedOperationException { super.authorize(client); return this.type; }