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); } }
public void Update(Adult toUpdate) { JobTitle = toUpdate.JobTitle; base.Update(toUpdate); }