예제 #1
0
        static void Main(string[] args)
        {
            string nombre;
            long   nroCuenta;
            double saldo;

            //Cuenta.ETipoInteres tipoInteres;
            // string tipo;
            Cuenta.ETipoInteres tipoInteres;

            //Cuenta cuentaOrigen = new Cuenta();
            Cuenta cuentaUno = new Cuenta("Alan", 182, 1500, Cuenta.ETipoInteres.RIR);


            Console.WriteLine(cuentaUno.getNombre());
            cuentaUno.setNombre("Daniel");
            Console.WriteLine(cuentaUno.getNombre());


            /*nombre = Console.ReadLine();
             *
             *
             *
             * Console.WriteLine("Ingrese numero de cuenta: ");
             * nroCuenta = long.Parse(Console.ReadLine());
             * cuentaUno.getNroCuenta();
             *
             * Console.WriteLine("Ingrese saldo: ");
             * saldo = double.Parse(Console.ReadLine());
             * cuentaUno.getSaldo();
             *
             * Console.WriteLine("Ingrese tipo de interes: 1. TIN / TAE / RIR: ");
             * tipoInteres = Console.ReadLine();
             * cuentaUno.getTipoInteres();
             *
             * switch(tipo)
             * {
             *  case "TIN":
             *
             *           tipoInteres = Cuenta.ETipoInteres.TIN;
             *
             *
             *  case "TAE":
             *
             *           tipoInteres = Cuenta.ETipoInteres.TAE;
             *
             *
             *  case "RIR":
             *
             *           tipoInteres = Cuenta.ETipoInteres.RIR;
             *
             * }*/



            Console.ReadKey();
        }
예제 #2
0
        static void Main(string[] args)
        {
            Cuenta cuenta1 = new Cuenta();
            Cuenta cuenta2 = new Cuenta();
            Cuenta cuenta3 = new Cuenta();

            Console.WriteLine(cuenta1.getTipoInteres());

            cuenta1.setNombre("Francisco");
            Console.WriteLine(cuenta1.getNombre());


            Console.ReadKey();
        }
예제 #3
0
        static void Main(string[] args)
        {
            string nombre;
            long nroCuenta;
            double saldo;
            //Cuenta.ETipoInteres tipoInteres;
            // string tipo;
            Cuenta.ETipoInteres tipoInteres;

            //Cuenta cuentaOrigen = new Cuenta();
            Cuenta cuentaUno = new Cuenta("Alan", 182, 1500, Cuenta.ETipoInteres.RIR);

            Console.WriteLine(cuentaUno.getNombre());
            cuentaUno.setNombre("Daniel");
            Console.WriteLine(cuentaUno.getNombre());

            /*nombre = Console.ReadLine();

            Console.WriteLine("Ingrese numero de cuenta: ");
            nroCuenta = long.Parse(Console.ReadLine());
            cuentaUno.getNroCuenta();

            Console.WriteLine("Ingrese saldo: ");
            saldo = double.Parse(Console.ReadLine());
            cuentaUno.getSaldo();

            Console.WriteLine("Ingrese tipo de interes: 1. TIN / TAE / RIR: ");
            tipoInteres = Console.ReadLine();
            cuentaUno.getTipoInteres();

            switch(tipo)
            {
                case "TIN":

                         tipoInteres = Cuenta.ETipoInteres.TIN;

                case "TAE":

                         tipoInteres = Cuenta.ETipoInteres.TAE;

                case "RIR":

                         tipoInteres = Cuenta.ETipoInteres.RIR;

            }*/

            Console.ReadKey();
        }
예제 #4
0
        static void Main(string[] args)
        {
            Cuenta miCuentita = new Cuenta();

            miCuentita.setNombre("Pepe");

            miCuentita.setNroCuenta(15698);

            miCuentita.setSaldo(-10);

            miCuentita.setTipoInteres(ETipoInteres.TAE);



            Console.WriteLine(miCuentita.getNombre());

            Console.WriteLine(miCuentita.getNroCuenta());

            Console.WriteLine(miCuentita.getSaldo());

            Console.WriteLine(miCuentita.getTipoInteres());

            Console.ReadKey();
        }