public static Euro operator -(Euro e, Pesos p) { Euro euro = new Euro(); euro = (Euro)p; e._cantidad -= euro.getCantidad(); return(e); }
public static Euro operator -(Euro e, Dolar d) { Euro euro = new Euro(); euro = (Euro)d; e._cantidad -= euro.getCantidad(); return(e); }
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); } }
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); } }