public override bool Equals(System.Object otherStylist) { if (!(otherStylist is Stylist)) { return(false); } else { Stylist newStylist = (Stylist)otherStylist; return(this.GetId() == newStylist.GetId() && this.GetName() == newStylist.GetName() && this.GetRating() == newStylist.GetRating()); } }