public override bool Equals(System.Object otherStylist) { if (!(otherStylist is Stylist)) { return(false); } else { Stylist newStylist = (Stylist)otherStylist; bool idEquality = this.GetId() == newStylist.GetId(); bool nameEquality = this.GetName() == newStylist.GetName(); bool phoneEquality = this.GetPhone() == newStylist.GetPhone(); bool descriptionEquality = this.GetDescription() == newStylist.GetDescription(); return(idEquality && nameEquality && phoneEquality && descriptionEquality); } }