public class Dog extends Animal {
    /** 
     * constructs a dog with given name and color
     */
    Dog(String theName, String theColor) {
	// uses the Animal (superclass) constructor
	// with same arguments
	super(theName,theColor);
    }

    /**
     * implements the abstract method.
     */
    public int getNLegs() {
	return 4;
    }
    
    /**
     * specializes species name
     */
    public String getSpeciesName() {
	return "cane";
    }
}
