// represents a clarinet public class Clarinet extends WoodWind { /* constructors -----------------------------------------*/ public Clarinet() { super(); } /* constructor with numerator and denominator parameters */ public Clarinet(String newKey, String newReed) { super(newKey, newReed); } /* other methods ----------------------------------------*/ /* play the instrument */ public void play() { System.out.println("blow into mouthpiece and press fingers over openings."); } // play clarinet-specific public void minuet() { System.out.println("And now, the minuet for clarinet!"); } /* toString create String representation */ public String toString() { return "Clarinet "+super.toString(); } }