Ace Your C++ Skills 2025 – Rock the ‘Thinking in C++’ Challenge!

Question: 1 / 565

Which class’s 'play()' function is expected to output "Stringed::play"?

Instrument

Wind

Brass

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".

Get further explanation with Examzify DeepDiveBeta
Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy