|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Payroll
Payroll class. Manages list of actors that need to be paid
Field Summary | |
private Actor[] |
actors
An array contain the managed actors |
private static int |
MAXACTOR
The maximum allowable actors that can be managed |
private int |
nActors
The number of actors currently being managed |
Constructor Summary | |
Payroll()
Default constructor for the Payroll class |
Method Summary | |
void |
addActor(Actor A)
Adds an actor to the payroll. |
double |
calculateTotalPay()
Caculates the weekly pay for all of the actors |
static void |
main(java.lang.String[] args)
A test program for the Payroll Class |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Actor[] actors
private int nActors
private static final int MAXACTOR
Constructor Detail |
public Payroll()
Method Detail |
public void addActor(Actor A)
A
- the actor to be addedpublic double calculateTotalPay()
public static void main(java.lang.String[] args)
args
- Commandline arguments
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |