public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } if (Object.ReferenceEquals(obj, null)) { return(false); } if (this.GetType() != obj.GetType()) { return(false); } Elev elev = (Elev)obj; return(this.nume == elev.nume && this.id_scoala == elev.id_scoala); }
public Elev(Elev other) : base(other) { this.nume = other.nume; this.id_scoala = other.id_scoala; }
public Jucator(Elev e, long id_echipa) : base(e) { this.id_echipa = id_echipa; }