예제 #1
0
 /**
  * @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");
   }
 }
예제 #2
0
 /**
  * @param client
  * @return
  */
 public BasicAccountType getType(Client client) throws UnsupportedOperationException {
   super.authorize(client);
   return this.type;
 }