You are on page 1of 1

public override string ToString() { return ""; } public Object Clone() { ContBancar copie = new ContBancar(this.balanta, this.

id); return copie; } public ContBancar(ContBancar cb) { this.balanta = cb.balanta; this.id = cb.id; } public int CompareTo(object a) { if (a is Abonat) { Abonat ab = (Abonat)a; //ab = a as Abonat; if (this.CalculeazaTotal() > ab.CalculeazaTotal()) return 1; else if (this.CalculeazaTotal() < ab.CalculeazaTotal()) return -1; else return 0; } else return 1; } public static Abonat operator +(Abonat a, double valoare) { Abonat nou = (Abonat)a.Clone(); // return nou; }