/**
 * Dog subclass 
 */

public class Dog  extends  Canine       //subclass extends superclass
{

    String breed;                       //add additional fields
    String color;

    Dog(String breed, String color)     //constructor
    {
        super("dog",true);              //call the superclass constructor

        this.breed = breed;
        this.color = color;
    }

    public String toEat( )              //define method
    {
        return("beg for food");
    }

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