コード例 #1
0
 public Meci(int id, Echipa echipa1, Echipa echipa2, DateTime data)
 {
     base.id      = id;
     this.echipa1 = echipa1;
     this.echipa2 = echipa2;
     this.data    = data;
 }
コード例 #2
0
 public override bool Equals(object obj)
 {
     if (obj is Echipa)
     {
         Echipa echipa = (Echipa)obj;
         return(echipa.id == this.id);
     }
     return(false);
 }
コード例 #3
0
 public Jucator(int id, string nume, string scoala, Echipa echipa) : base(id, nume, scoala)
 {
     this.echipa = echipa;
 }