public bool Equals(Freelancer another) { return(Name.Equals(another.Name) && MonyPerHour.Equals(another.MonyPerHour) && Experience.Equals(another.Experience) && Gender.Equals(another.Gender)); }
public bool Equals(Employee another) { return(Name.Equals(another.Name) && MonyPerHour.Equals(another.MonyPerHour) && Level.Equals(another.Level) && Gender.Equals(another.Gender)); }
public int CompareTo(Employee other) { if (other == null) { return(1); } return(MonyPerHour.CompareTo(other.MonyPerHour)); }