Question: USING BLUE J abstract public class Musical Instrument { protected enum InstzumentInne strings, brass, woodwind, percussion}; private InstrumentType type; protected double price; protected String brand;
USING BLUE J
abstract public class Musical Instrument { protected enum InstzumentInne strings, brass, woodwind, percussion}; private InstrumentType type; protected double price; protected String brand; public Musical Instrument (InstrumentIype type) { this.type = type; } public String toString(); { return type.name(); } } MusicalInstrument is a base class. 1. Create two subclasses of your choice. 2. Additionally, create orchestra class that has main method that makes instances of each of subclasses and prints them with all available details. 3. Make UML diagram that depicts the class relationship
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
