Пример #1
0
 public override bool Equals(object obj)
 {
     if ((obj == null) || !this.GetType().Equals(obj.GetType()))
     {
         return(false);
     }
     else
     {
         Adult a = (Adult)obj;
         return(base.Equals(a) && JobTitle == a.JobTitle);
     }
 }
Пример #2
0
 public void Update(Adult toUpdate)
 {
     JobTitle = toUpdate.JobTitle;
     base.Update(toUpdate);
 }