public class Movie extends Product {

  private String genre;       /* Action Adventure, Comedy, Drama */
  private String formatType;  /* VHS, DVD, LaserDisk */
  private String rating;      /* Rating for the movie, G,PG,PG-13,R */
  private String[] talent;    /* Actress/Actor */

  public Movie(String inName, String inDescription, String inGenre,
    String inFormatType, String inRating, String[] inTalent) {
    super(inName, inDescription);
    genre = inGenre;
    formatType = inFormatType;
    rating = inRating;
    talent = inTalent;
  }

  public String getGenre() {
    return genre;
  }

  public String getFormatType() {
    return formatType;
  }

  public String getRating() {
    return rating;
  }

  public String getTalent() {
    StringBuffer talentBuffer = new StringBuffer(initialBufferLength);
    for(int i=0; i<talent.length; i++) {
      if(i!= 0) {
        talentBuffer.append(",");
      }
      talentBuffer.append(talent[i]);
    }
    return talentBuffer.toString();
  }

  public String toString() {
    StringBuffer outputBuffer = new StringBuffer(initialBufferLength);
    outputBuffer.append("Name=" + getName() + ";" +
      "Description=" + getDescription() + ";" + "Genre=" + genre +
      ";" + "FormatType=" + formatType + ";" + "Rating=" + rating +
      "Talent=" + getTalent());
    return outputBuffer.toString();
  }
}
