Disable ads (and more) with a membership for a one time $2.99 payment
Which class’s 'play()' function is expected to output "Stringed::play"?
Instrument
Wind
Brass
Stringed
The correct answer is: Stringed
The other options (A, B, C) are incorrect because they either do not have a 'play()' function or they do not match the expected output "Stringed:play." Instrument and Wind do not have 'play()' functions, while Brass has a 'play()' function but outputs "Brass::play". Therefore, the correct option is Stringed as it has a 'play()' function that outputs "Stringed::play".