/**
 * Fox subclass 
 */

public class Fox  extends  Canine        //subclass extends superclass
{

    String habitat;                     //add additional fields 
    String color;

    Fox(String habitat, String color)   //constructor
    {
        super("fox",false);             //call the superclass constructor

        this.habitat = habitat;
        this.color   = color;
    }

    public String toEat( )              //define method
    {
            return("must hunt");
    }

    public String toString( )           //define toString() method
    {
        return("Type:" + type     + 
         "  Domestic:" + domestic + 
         "  Habitat:"  + habitat  + 
         "  Color:"    + color    +
         "  To eat:"   + toEat() );
    }
}