Esempio n. 1
0
        public IMoneda Negar()
        {
            Monedero result = new Monedero();

            foreach (Moneda m in fMonies)
            {
                result.AppendMoney((Moneda)m.Negar());
            }
            return(result);
        }
Esempio n. 2
0
        public IMoneda Multiplicar(int factor)
        {
            Monedero result = new Monedero();

            if (factor != 0)
            {
                foreach (Moneda m in fMonies)
                {
                    result.AppendMoney((Moneda)m.Multiplicar(factor));
                }
            }
            return(result);
        }