Question: Song Class Java 1. Song Class Name: Song.java Create a Song class with the following items: Attributes (private): . Title Artist . Duration Constructors No
Song Class Java

1. Song Class Name: Song.java Create a Song class with the following items: Attributes (private): . Title Artist . Duration Constructors No argument constructor (set the attributes to default values) .Constructor that allows the attributes to be set Operations (public): toString0 to return a string representation of the Song in the format "Title" by Artist (duration) .Getters for each attribute . Setters for each attribute Add a main0 method to the Song class that creates two Song objects, one using the no arg constructor and one using the other constructor. Use the setters to set values for one of the Song objects. Display the result of both Song object's toString0 methods. Example Output: songl: "Fireflies" by Owl City (3:54) song2: "Sukiyaki" by Kyu Sakamoto (3:09)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
