Ejemplo n.º 1
0
        public static Euro operator -(Euro e, Pesos p)
        {
            Euro euro = new Euro();

            euro         = (Euro)p;
            e._cantidad -= euro.getCantidad();
            return(e);
        }
Ejemplo n.º 2
0
        public static Euro operator -(Euro e, Dolar d)
        {
            Euro euro = new Euro();

            euro         = (Euro)d;
            e._cantidad -= euro.getCantidad();
            return(e);
        }
Ejemplo n.º 3
0
        public static bool operator ==(Euro e, Pesos p)
        {
            Euro euro = new Euro(0);

            euro = (Euro)p;
            if (euro.getCantidad() == (float)e.getCantidad())
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 4
0
        public static bool operator ==(Euro e, Dolar d)
        {
            Euro euro = new Euro(e.getCantidad());

            euro = (Euro)d;
            if (euro.getCantidad() == (float)e.getCantidad())
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }