Question
Solution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references.
Students may use these solutions for personal skill-building and practice.
Unethical use is strictly forbidden.

/**
* This is the base class for Playlist.
* It has title, artist name and genre as
* instance variables.
*/
public class SongBase {

    /**
    * Song title
    */
    private String title;

    /**
    * The artist name
    */
    private String artist;

    /**
    * Genre of the song.
    */
    private int genre;

    /**
    * Default constructor of SongBase
    */
    public SongBase() {
       this.title = "";
       this.artist = "";
       this.genre = -1;
    }

    /**
    * The parameterised constructor.
    * @param title the title of the song.
    * @param artist the artist name.
    * @param genre the genre of the song.
    */
    public SongBase(String title, String artist, int genre) {
       this.title = title;
       this.artist = artist;
       this.genre = genre;
    }

    /**
    * Gets the title of
    * the song.
    * @return the song title.
    */
    public String getTitle() {
       return title;
    }

    /**
    * Sets the title of the song.
    * @param title the song title.
    */
    public void setTitle(String title) {
       this.title = title;
    }

    /**
    * Gets the artist name.
    * @return the artist name.
    */
    public String getArtist() {
       return artist;
This is only a preview of the solution.
Please use the purchase button to see the entire solution.
By purchasing this solution you'll be able to access the following files:
SongBase.java
PlaylistDerived.java
PlaylistClient.java
Purchase Solution
$70.00
Google Pay
Amazon
Paypal
Mastercard
Visacard
Discover
Amex
View Available Computer Science Tutors 645 tutors matched
Ionut
(ionut)
Master of Computer Science
Hi! MSc Applied Informatics & Computer Science Engineer. Practical experience in many CS & IT branches.Research work & homework
5/5 (6,806+ sessions)
1 hour avg response
$15-$50 hourly rate
Pranay
(math1983)
Doctor of Philosophy (PhD)
Ph.D. in mathematics and working as an Assistant Professor in University. I can provide help in mathematics, statistics and allied areas.
4.6/5 (6,696+ sessions)
1 hour avg response
$40-$50 hourly rate
Leo
(Leo)
Doctor of Philosophy (PhD)
Hi! I have been a professor in New York and taught in a math department and in an applied math department.
4.9/5 (6,467+ sessions)
2 hours avg response

Similar Homework Solutions