/**
 * PartTimer subclass extends Employee superclass 
 *
 */

public class PartTimer extends Employee              // extends Employee superclass
{
    /**
     * class and instance variables
     */

    private static boolean healthPlan = false;      // add class variables
    
    private int numHours;                           // add instance variables
    private int hourlyRate;

    /**
     * Constructor for objects of class PartTimer
     */

    PartTimer(String title, String last, String first, String x, int old,
              int hours, int rate)   
    {
        super(title, last, first, x, old);           // call superclass constructor
                                                     // pass it title,last,first,sex,age
        numHours   = hours;
        hourlyRate = rate;  
    }

    public String toString()                        //toString instance method
    {
        String name = getFullname();				//call getFullname() method
        String data = "Position: " + position + 
                      "\t Name:  " + name + 
                      "\t Sex: "   + sex + "\t Age: " + age +
                      "\t Hours: " + numHours + " @ Rate: " + hourlyRate;
        return (data);
    }
}