/*
 * @topic T10338 Feb 5, 2013 Inheritance Demo v.1
 * @brief class Dog extends VWCharacter
*/

package inheritance;

public class Dog extends VWCharacter {

    static final private String DOG_SOUND = "bark";

    private String name;

    public Dog( String name ) {
        this.name = name;
    }

    public void speak()
    {
        System.out.println( DOG_SOUND );
        System.out.println( "My name is " + name );
    }


}//class Dog