// XJRobo   Extension of JRobo v1.0 class 
//          which adds name & dateOfBirth properties & methods.
// Author:  David 4/9/99
// Version: 1.0

import java.awt.*;
import java.util.Date;

public class XJRobo extends JRobo
{

    String name;
    Date dateOfBirth;

    public XJRobo ( Graphics g, String theName )
    {
        super( g );
        name = theName;
        dateOfBirth = new Date(  );
    }

    public void sayName(  )
    {
        System.out.println( name );
    }
    
    public void setName( String newName )
    {
        name = newName;
    }
    
    public String getName(  )
    {
        return name;
    }
    
    public Date getDateOfBirth(  )
    {
        return dateOfBirth;
    }

} // end JRobo class