 


/**
 * The tape class represents a audio and video
 * digital recording.
 * 
 * @author (Michael Rivers) 
 * @version (April 11th 2006)
 */
public class DVD extends Video
{
    // instance variables - replace the example below with your own
    private boolean bonusMaterials;

    /**
     * Constructor method that has the parent constructor in it
     */
    public DVD(String theTitle, String theDirector, int time)
    {
        super(theTitle, theDirector, time);
        bonusMaterials = false;
    }

    /**
     * Constructor with gotIt parameter
     */
    public DVD(String theTitle, String theDirector, 
                               int time, boolean gotIt)
    {
        super(theTitle, theDirector, time, gotIt);
        bonusMaterials = false;
    }
    
    /**
     * Constructor with gotIt and comment parameters
     */
    public DVD(String theTitle, String theDirector, 
                       int time, boolean gotIt, String comment)
    {
        super(theTitle, theDirector, time, gotIt, comment);
        bonusMaterials = false;
    }
    /**
     * Accessor method to check for bonus materials
     */
    public boolean getBonusMaterials()
    {
        return bonusMaterials;
    }
    
    /**
     * Mutator method to change weather bonus materials are included
     */
    public void setBonusMaterials(boolean bonusMaterialsOrNoBonusMaterials)
    {
        bonusMaterials = bonusMaterialsOrNoBonusMaterials;
    }
    
    /**
     * Print method calls the print method of Video
     * and also prints out the additional details
     */
    public void print()
    {
        super.print();
        if(bonusMaterials) {
            System.out.println("Includes Bonus Materials!");
        } else {
            System.out.println();
        }
    }
}

