Given the following Playable interface, Note class, and Chordclass:
/** * The requirements of a Playable in a song */ publicinterface Playable
{
/** * Play this Playable */
public abstract void play();
}
/** * A single Note in a song */
public class Note implements Playable
{ // Details omitted
/** * Explicit Value Constructor
*
* @param pitch The pitch (‘A’,’B’,’C’,’D’,’E’,’F’, ‘G’ or’R’)
* @param sharp true for a sharp and false for a natural
* @param octave The octave (relative to middle C)
* @param duration 1 for whole notes, 2 for half notes,etc…
* @param dotted Whether the note is dotted
*/
public Note(char pitch, boolean sharp, int octave, int duration,boolean dotted)
{
//
PayPal Gateway not configured
PayPal Gateway not configured