The constructor that takes four arguments: the title, the artist, and two arguments representing the song length in minutes and seconds is given below:
<h3>The Java Code</h3>
public class Song
{
// instance variable declaration
private String songTitle;
private String songArtist;
private Duration songLength;
// Constructors
public Song (String title , String artist , int min , int sec )
{
this( title , artist , Duration.ofMinutes( min ).plusSeconds( sec ) ) ;
}
public Song (String title , String artist , int totalSeconds )
{
this( title , artist , Duration.ofSeconds( totalSeconds ) ) ;
}
public Song (String title , String artist , Duration duration )
{
this.songTitle = title;
this.songArtist = artist;
this.songLength = duration ;
}
Read more about java programming here:
brainly.com/question/18554491
#SPJ1