// represents general abstract elements of percussion instruments public abstract class Percussion extends MusicalInstrument{ protected String sticks; /* constructors -----------------------------------------*/ public Percussion() { super(); sticks = "basic mallet"; } /* constructor with parameters */ public Percussion(String newKey, String newStick) { super(newKey); setSticks(newStick); } /* mutators and accessors for instance variables -------*/ public void setSticks(String newStick) { sticks = newStick; } public String getSticks() { return sticks; } /* other methods ----------------------------------------*/ // prepare percussion instrument public void prepare() { System.out.println("set up instrument and lay out " + sticks); } /* toString create String representation */ public String toString() { return sticks+" and "+super.toString(); } }