/**
 * A pet with a name.
 * 
 * @author Drue Coles
 */
public abstract class Pet {
    
    protected final String name;
        
    /**
     * Creates a pet with a given name.
     */
    public Pet(String name) {
        this.name = name;
        System.out.println("TESTING: in Pet constructor.");
    }
      
    /**
     * Makes a sound.
     */
    abstract void speak();
    
    /**
     * Returns a description of this pet. 
     */
    @Override
    public String toString() {
        return "My name is " + name + ".";
    }
}