Description
PRG/421 Week 3 Lab 3.18 LAB: Instrument information (derived classes)
Given main() and the Instrument class, define a derived class, String Instrument, for string instruments.
Ex. If the input is:
Drums
Zildjian
2015
2500
Guitar
Gibson
2002
1200
6
19
the output is:
Instrument Information:
Name: Drums
Manufacturer: Zildjian
Year built: 2015
Cost: 2500
Instrument Information:
Name: Guitar
Manufacturer: Gibson
Year built: 2002
Cost: 1200
Number of strings: 6
Number of frets: 19
Reviews
There are no reviews yet.