public class Glockenspiel extends Percussion { /* constructors -----------------------------------------*/ public Glockenspiel() { super(); setSticks("glockenspiel mallet"); } /* other methods ----------------------------------------*/ /* play the instrument */ public void play() { System.out.println("strike metal keys with " + getSticks()); } /* toString create String representation */ public String toString() { return "Glockenspiel "+super.toString(); } }