Example #1
0
        public bool AlumnoPago(string dep, int valor, string pase)
        {
            bool todoOk = true;

            try
            {
                switch (dep)
                {
                case "Boxeo":
                    this.cuotas.Add(Boxeo.Cobrar(valor, pase));
                    break;

                case "Funcional":
                    this.cuotas.Add(Funcional.Cobrar(valor, pase));
                    break;

                case "Taekwondo":
                    this.cuotas.Add(Taekwondo.Cobrar(valor, pase));
                    break;
                }
            }
            catch (Exception) {
                todoOk = false;
            }


            return(todoOk);
        }
Example #2
0
        public static Cuota Cobrar(int valor, string pase)
        {
            Taekwondo tae = new Taekwondo(valor, pase);

            return(tae);
        }