Exemplo n.º 1
0
 public Cuenta(string nombre, long nroCuenta, double saldo, ETipoInteres tipoInteres)
 {
     this._nombre = nombre;
     this._nroCuenta = nroCuenta;
     this._saldo = saldo;
     this._tipoInteres = tipoInteres;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor de cuenta
 /// </summary>
 /// <param name="nombre">nombre que recibira la nueva cuenta</param>
 /// <param name="numeroCuenta">numero que tendra la cuenta</param>
 /// <param name="saldo">valor que tendra el saldo</param>
 /// <param name="interes">el tipo de interes que tendra</param>
 public Cuenta(string nombre, string numeroCuenta, double saldo, ETipoInteres interes)
 {
     this._nombre      = nombre;
     this._nrocuenta   = numeroCuenta;
     this._saldo       = saldo;
     this._tipoInteres = interes;
 }
Exemplo n.º 3
0
 public Cuenta(string nombre, long nroCuenta, double saldo, ETipoInteres tipoInteres)
 {
     this._nombre      = nombre;
     this._nroCuenta   = nroCuenta;
     this._saldo       = saldo;
     this._tipoInteres = tipoInteres;
 }
Exemplo n.º 4
0
 public void setTipoInteres(ETipoInteres tipoInteres)
 {
     if (tipoInteres < ETipoInteres.TIN || tipoInteres > ETipoInteres.TIR)
     {
         _tipoInteres = tipoInteres;
     }
     else
     {
         Console.WriteLine("El tipo de interes es incorrecto");
     }
 }
Exemplo n.º 5
0
 public void setTipoInteres(ETipoInteres tipoInteres)
 {
     if ((tipoInteres <= (ETipoInteres)3) && (tipoInteres > (ETipoInteres)0))
     {
         this._tipoInteres = tipoInteres;
     }
     else
     {
         this._tipoInteres = (ETipoInteres)4;
     }
 }
Exemplo n.º 6
0
        public void setTipoInteres(ETipoInteres tipoInteres)
        {
            if ((this._tipoInteres != ETipoInteres.RIR) && (this._tipoInteres != ETipoInteres.TAE) && (this._tipoInteres != ETipoInteres.TIN))
            {
                Console.WriteLine("No se indico saldo");
            }

            else
            {
                this._tipoInteres = tipoInteres;
            }
        }
Exemplo n.º 7
0
 public void setTipoInteres(ETipoInteres tipoInteres)
 {
     this._tipoInteres = tipoInteres;
 }
Exemplo n.º 8
0
 public void SetTipoInteres(ETipoInteres tipoIn)
 {
     this._tipoInteres = tipoIn;
 }
Exemplo n.º 9
0
        public void setTipoInteres(ETipoInteres tipoInteres)
        {
            if ((this._tipoInteres != ETipoInteres.RIR) && (this._tipoInteres != ETipoInteres.TAE) && (this._tipoInteres != ETipoInteres.TIN))
            {

                Console.WriteLine("No se indico saldo");
            }

            else
                this._tipoInteres = tipoInteres;
        }