/*
 * @topic T11338 Spring 2017 Inheritance Demo
 * @brief abstract class TimeSlot
*/
package inheritancedemo;

public abstract class TimeSlot {

    //--------------------------------------
    // data attributes
    //--------------------------------------
    private int employeeID;
    private int units;

    //--------------------------------------
    // constructors
    //--------------------------------------
    public TimeSlot( int employeeID, int units )
    {
        this.employeeID = employeeID;
        this.units = units;
    }//TimeSlot

    //--------------------------------------
    // abstract operations
    //--------------------------------------
    abstract public double getRate();

    //--------------------------------------
    // operations
    //--------------------------------------
    public int getUnits()
    {
        return units;
    }//getUnits

    public int getEmployeeID() {
        return employeeID;
    }//getEmployeeID

}//class TimeSlot