 


/**
 * The tape class represents a audio and video
 * magnetic recording.
 * 
 * @author (Michael Rivers) 
 * @version (April 11th 2006)
 */
public class Tape extends Video
{
    private String format;
    
    /**
     * Constructor method that has the parent constructor in it
     */
    public Tape(String theTitle, String theDirector, int time)
    {
        super(theTitle, theDirector, time);
        format = "Unknown format";
    }
    
    /**
     * Constructor including gotIt parameter
     */
    public Tape(String theTitle, String theDirector, 
                            int time, boolean gotIt)
    {
        super(theTitle, theDirector, time, gotIt);
        format = "Unknown format";
    }
    
    /**
     * Constructor including gotIt and comment parameters
     */
    public Tape(String theTitle, String theDirector, 
                            int time, boolean gotIt, String comment)
    {
        super(theTitle, theDirector, time, gotIt, comment);
        format = "Unknown format";
    }
    /**
     * Accessor method that returns the format type
     */
    public String getFormat()
    {
        return format;
    }
    /**
     * Mutator method to change the format type
     */
    public void setFormat(String betaOrVHS)
    {
        format = betaOrVHS;
    }
    
    /**
     * Print method calls the print method of Video
     * and also prints out the additional details
     */
    public void print()
    {
        super.print();
        System.out.print("format: " + format);
    }
}

