Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Design a complete Song class. a . Each object of the class Song can hold the following information about a song: title, up to three

Design a complete Song class.
a. Each object of the class Song can hold the following information about a song: title,
up to three artists, lyricist, unique songID, duration (in seconds), rating and one extra
kind of information of your choice, like genre. It is recommended that you use an
enumerator.
b. Include the member functions/methods to perform the various operations on objects
of type Song. For example, the usual operations that can be performed on the song
are
i. Add the appropriate constructors and a destructor (if one is needed).
ii. Create getters and setters for the title, lyricist, duration (should be positive and
non-zero numbers), genre
iii. Create a function/method to add artists to the song (e.g. on a live show).
iv. Create a function/method (toString) which will return all song information
formatted.
v. Check whether a Song is the same as another Song by using the songID

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students explore these related Databases questions