Create a class called Musicians to contain three methods string ( ), wind () and perc (). Each of these methods should initialize a string array to contain the following instruments

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 1CP: In previous chapters, you have created programs for the Greenville Idol competition. Now create a...
icon
Related questions
Question

C++

3. Create a class called Musicians to contain three methods string ( ), wind () and perc
(). Each of these methods should initialize a string array to contain the following
instruments
- veena, guitar, sitar, şarod and mandolin under string ()
- flute, clarinet saxophone, nadhaswaram and piccolo under wind ()
- tabla. mridangam, bangos, drums and tambour under perc ()
It should also display the contents of the arrays that are initialized. Create a derived
class called Typelns to contain a method called get () and show (). The get () method
must display a means as follows
Type of instruments to be displayed
a. String instruments
b. ind instruments
C. Percussion instruments
The show () method should display the relevant detail according to our choice. The
base class variables must be accessible only to its derived classes.
Transcribed Image Text:3. Create a class called Musicians to contain three methods string ( ), wind () and perc (). Each of these methods should initialize a string array to contain the following instruments - veena, guitar, sitar, şarod and mandolin under string () - flute, clarinet saxophone, nadhaswaram and piccolo under wind () - tabla. mridangam, bangos, drums and tambour under perc () It should also display the contents of the arrays that are initialized. Create a derived class called Typelns to contain a method called get () and show (). The get () method must display a means as follows Type of instruments to be displayed a. String instruments b. ind instruments C. Percussion instruments The show () method should display the relevant detail according to our choice. The base class variables must be accessible only to its derived classes.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT