
// CD.java
// Andrew Davison, Nov 2018, ad@fivedots.coe.psu.ac.th


/**
 * The CD class represents a CD object. Information about the 
 * CD is stored and can be retrieved.
 * 
 * @author Michael Kolling and David J. Barnes
 * @version 2006.03.30
 */


public class CD extends Item
{
  private String artist;
  private int numTracks;


  public CD(String theTitle, String theArtist, int tracks, int time)
  {
    super(theTitle, time);
    artist = theArtist;
    numTracks = tracks;
  }

  public String getArtist()
  {  return artist;  }

  public int getNumberOfTracks()
  {  return numTracks; }

}  // end of CD class
