question archive a class Music, which contains Three data members i

a class Music, which contains Three data members i

Subject:Computer SciencePrice:8.89 Bought3

a class Music, which contains

  • Three data members i.e. songTitle (of string type), singerName (of string type), and singingYear (of integer type)
  • no-argument constructor to initialize all data members with default values i.e. "---""---", and 0, respectively
  • parameterized constructor to initialize all data members with user-defined values
  • Three setter functions to set values for all data members individually

Derive a class named FolkMusic that contains

  • A data field provinceName to hold the name of the province (of string type)
  • no-argument constructor to assign default value as "---" to provinceName
  • four argument constructor to assign user-defined values to songTitlesingerNamesingingYear, and provinceName
  • setter function to set the name of the province
  • A function named show() that displays all data member values of invoking object

a main() function that instantiates objects of FolkMusic class and test the functionality of all its member functions.

Option 1

Low Cost Option
Download this past answer in few clicks

8.89 USD

PURCHASE SOLUTION

Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

rated 5 stars

Purchased 3 times

Completion Status 100%