/*
 * @topic T10356 Feb 5, 2013 Inheritance Demo v.2
 * @brief class Dog extends VWCharacter
*/
package inheritance;

public class Dog extends VWCharacter {

    static final private String DOG_SOUND = "bark";

    // constructor
    public Dog(String name)
    {
        // no problem accessing protected data attribute
        // from the superclass:
        this.name = name;
    }

    // abstract method is implemented here:
    public void speak()
    {
        System.out.println( DOG_SOUND );
        System.out.println( "My name is " + name );
    }

}//class Dog