 


/**
 * The CD class represents a music CD object. Information about the 
 * CD is stored and can be retrieved.
 *
 *@author Michael Kölling and David J. Barnes
 *@version 2002-05-02
 */
public class CD extends Item
{
    private String artist;
    private int numberOfTracks;

    /**
     * Initialize the CD
     */
    public CD(String theTitle, String theArtist, int tracks, 
              int time)
    {
        super(theTitle, time);
        artist = theArtist;
        numberOfTracks = tracks;
    }
    
    /**
     * Constructor with gotIt parameter
     */
    public CD(String theTitle, String theArtist, int tracks, 
              int time, boolean haveIt)
    {
        super(theTitle, time, haveIt);
        artist = theArtist;
        numberOfTracks = tracks;
    }

    /**
     * Constructor with gotIt and comment parameter
     */
    public CD(String theTitle, String theArtist, int tracks, 
              int time, boolean haveIt, String comment)
    {
        super(theTitle, time, haveIt, comment);
        artist = theArtist;
        numberOfTracks = tracks;
    }
}


