Class Salaried_jd

java.lang.Object
  extended by Employee
      extended by Salaried_jd

public class Salaried_jd
extends Employee

This class implements a salaried employee. It has same functionality as the Salaried class in Chapter 13.


Constructor Summary
Salaried_jd(java.lang.String name, double salary)
           
 
Method Summary
 double getPay()
           
 
Methods inherited from class Employee
printPay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Salaried_jd

public Salaried_jd(java.lang.String name,
                   double salary)
Parameters:
name - person's name
salary - annual salary in dollars
Method Detail

getPay

public double getPay()
Overrides:
getPay in class Employee
Returns:
half month's pay in dollars