Question: B . Design a complete Song class in java a . Each object of the class Song can hold the following information about a song:

B. Design a complete Song class in java
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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!