예제 #1
-1
  private boolean Transferencia(Cuenta cuentaReceptora, float importe) {
    float interes = importe * this.tipoInteres / 100;
    if (this.Recargo(importe + interes)) {
      if (cuentaReceptora.Ingreso(importe)) {
        this.registerMovement(
            new Recargo("Intereses transferencia " + this.tipoInteres + "% " + importe, interes));
        Banco.BancoCuenta.doMovement(
            new Ingreso(
                "Transferencia de: " + this.cuenta + " a " + cuentaReceptora.cuenta, interes));
        return true;
      }
      // si no se hace la transferencia, me devuelve el saldo.
      this.saldo += importe;
    }

    return false;
  }