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


C++


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

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

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here