FileDocCategorySizeDatePackage
Employee.javaAPI DocExample470Tue Jun 03 21:44:56 BST 2003None

Employee

public class Employee extends Person

Fields Summary
private short
deptCode
private int
staffNumber
Constructors Summary
public Employee(String firstName, String lastName, short dept, int number)

		super(firstName, lastName);
		setDeptCode(dept);
		setStaffID(number);
	
Methods Summary
public voidsetDeptCode(short dept)

		deptCode = dept;
	
public voidsetStaffID(int number)

		if (number < 1)
			throw new IllegalArgumentException("Invalid staff number " +
				number);
		staffNumber = number;