}
public static void main(String[] args) {
Instrument5[] orchestra = new Instrument5[5]; int i = 0;
orchestra[i++] = new Wind5();
orchestra[i++] = new Percussion5(); orchestra[i++] = new Stringed5(); orchestra[i++] = new Brass5();
orchestra[i++] = new Woodwind5(); tuneAll(orchestra); } }
程序执行结果: