02-8-2012, 02:30 PM
|
#7
|
Digital Dancing!
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,981
|
Re: [College] Java 2 programming
Ok so breakdown time on how this thing is gonna run hypothetically:
Driver contains the main, so that's executed. Neat little menu pops up. User picks "Add Employee" option and is prompted:
1. hourly
2. salary
3. commission
Lets say they pick hourly, they are prompted
Enter Last Name:
Enter First Name:
Enter Middle Initial:
Enter Gender:
Enter Employee Number:
Full Time (y/n):
Enter Wage:
(there's a separate menu for adding hours)
All this information gets sent to a method in the EmployeeManager class called addEmployee.
Within this addEmployee class am I supposed to call the toString method of HourlyEmployee or what? Unfortunately, the teacher didn't provide a UML on the EmployeeManager class and kinda just left it up to us to come up with something that works.
EDIT: I'm dumb, I'm not supposed to output the employee info til the user asks for it.
Last edited by rushyrulz; 02-8-2012 at 02:35 PM..
|
|
|