Java Programming Spring 2006 Homework #6

Visual CD Object

Due Date: 4/20

Assignment

This assignment involves writing a java class that represents a CD (for use in a database of CDs). Your CD class must implement the interface shown below - the important part of this is that your object must be able to generate a window that allows the user to enter and/or change the CD information.

Here is the interface you must implement:

public interface CD {
  public void setName(String s);
  public String getName();

  public void setArtist(String s);
  public String getArtist();

  public void setPublisher(String s);
  public String getPublisher();

  public void setNumTracks(int i);
  public int getNumTracks();
  public String toString();
  public void edit();
}

You class that implements CD must be named MyCD.

Issues:

Submitting

Submit to WebCT dropbox for HW6. Make sure all your code is commented with JavaDoc comments!