Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 functionsmethods 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
nonzero numbers genre
iii. Create a functionmethod to add artists to the song eg on a live show
iv Create a functionmethod 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started