public int CompareTo(IInstrument other) { if (other == null) { return(1); } Flute otherFlute = (Flute)other; return(InstrumentName.CompareTo(otherFlute.InstrumentName) + InstrumentGroup.CompareTo(otherFlute.InstrumentGroup) + InstrumentValue.CompareTo(otherFlute.InstrumentValue) + IsAntiquity.CompareTo(otherFlute.IsAntiquity) + FluteBrand.CompareTo(otherFlute.FluteBrand) + Material.CompareTo(otherFlute.Material) + FluteType.CompareTo(otherFlute.FluteType)); }
public Flute(string brand, FluteType type) : base(brand) { this.Type = type; }