Question: Write a fully - documented class named SongRecord which contains information about a particular audio file. It should have member variables for the title and

Write a fully-documented class named SongRecord which contains information
about a particular audio file. It should have member variables for the title and
artist (both strings) as well as two member variables for the song's length in
minutes and seconds (both ints). You should provide accessor and mutator
methods for each variable as well as a default constructor. For the mutator
method of the seconds variable, you should throw an exception if the new value
is less than 0 or greater than 59. For the mutator method of the minutes variable,
you should throw an exception if the new value is negative. Finally, you should
provide a toString() method that neatly prints the information about the audio file
on a single line as shown below in the sample outpu

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!