Exemple #1
0
        public override bool IsMatch(InstrumentSpec searchSpec)
        {
            if (!base.IsMatch(searchSpec))
            {
                return(false);
            }
            if (!(searchSpec is GuitarSpec))
            {
                return(false);
            }

            GuitarSpec spec = searchSpec as GuitarSpec;

            if (NumString != spec.NumString)
            {
                return(false);
            }

            return(true);
        }
 public Guitar(string serialNumber, double price, GuitarSpec spec) : base(serialNumber, price, spec)
 {
 }