/*
 *  File: SalaryEmployee.java
 *  Name: cpsc115 
 
    This class defines a SalaryEmployee as an Employee subclass.  It overrides
    the calculatePay() method.  Only SalaryEmployees have a weeklySalary
    attribute, which is why it is defined here rather than in the superclass.

 */

public class SalaryEmployee extends Employee {
    
    private double weeklySalary;

    public SalaryEmployee(String name, int id, String title,double weeklyPay) {
	super(name, id, title);
	this.weeklySalary = weeklyPay;
    }


    public double calculatePay() {
	return weeklySalary;
    }


}