public override bool Equals(System.Object otherVenue) { if (!(otherVenue is Venue)) { return(false); } else { Venue newVenue = (Venue)otherVenue; bool nameEquality = (this.GetVenueName() == newVenue.GetVenueName()); bool addressEquality = (this.GetVenueAddress() == newVenue.GetVenueAddress()); bool hoursEquality = (this.GetVenueHours() == newVenue.GetVenueHours()); return(nameEquality && addressEquality && hoursEquality); } }