comirva.web.ie.bandmembers
Class Instrument
java.lang.Object
comirva.web.ie.bandmembers.Instrument
class Instrument
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instruments
static String[] instruments
Instrument
public Instrument(String name,
int frequency)
throws InvalidInstrumentException
- Throws:
InvalidInstrumentException
Instrument
public Instrument(String name)
throws InvalidInstrumentException
- Throws:
InvalidInstrumentException
isValidInstrument
public boolean isValidInstrument()
getInstrument
public String getInstrument()
getFrequency
public int getFrequency()
setFrequency
public void setFrequency(int frequency)