Question: 1 0 . 2 8 LAB: Instrument information Given main ( ) and the Inst rument class, define a derived class, string Inst rument, for

10.28 LAB: Instrument information
Given main() and the Inst rument class, define a derived class, string Inst rument, for string instruments, with functions to set and
get private data members of the following types:
int to store the number of strings
int to store the number of frets
bool to store whether the instrument is bowed
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
Is bowed: false
 10.28 LAB: Instrument information Given main() and the Inst rument class,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!