public override bool Equals(System.Object otherBand) { if (!(otherBand is Band)) { return(false); } else { Band newBand = (Band)otherBand; bool idEquality = (this.GetId()) == newBand.GetId(); bool nameEquality = (this.GetName()) == newBand.GetName(); bool priceEquality = (this.GetPrice()) == newBand.GetPrice(); return(idEquality && nameEquality && priceEquality); } }