예제 #1
0
        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);
        }
예제 #2
0
 public Elev(Elev other) : base(other)
 {
     this.nume      = other.nume;
     this.id_scoala = other.id_scoala;
 }
예제 #3
0
 public Jucator(Elev e, long id_echipa) : base(e)
 {
     this.id_echipa = id_echipa;
 }