Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 fullydocumented 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 or greater than 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
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