/*
Chapter 5:
5.3
Programmer:
Brad Shedd
Date:
June 12, 2006
Filename:
Employee.java
Purpose:
Program creates a defined employee
record when it is called.
*/
import java.io.*;
public
class
Employee
{
public
String firstName, lastName, position;
public
float rate, hours;
public
Employee(String f, String l, String p,
float
r,
float h)
{
firstName =
f;
lastName =
l;
position =
p;
rate = r;
hours = h;
}
public
Employee (String f, String l, String p)
{
firstName =
f;
lastName =
l;
position =
p;
}
public
String getFirstName()
{
return
firstName;
}
public
String getLastName()
{
return
lastName;
}
public
String getPosition()
{
return
position;
}
public
float getRate()
{
return
rate;
}
public
float getHours()
{
return
hours;
}
}