CodeHS java 9.2.7
//CodeHS AP Computer Science A Java, 9.2.7: Instruments
//DO NOT COPY AND PASTE, YOUR TEACHER CAN SEE YOUR EDIT HISTORY.
//Part 1/3
//Wind.java
public class Wind extends Instrument
{
boolean reed;
public Wind(String name, String family, boolean reed){
super(name, family);
this.reed = reed;
}
public boolean getReed(){
return reed;
}
public void setReed(boolean bool){
this.reed = bool;
}
}