//----------------------------------------------------------------- // Sets up the list of staff members. //----------------------------------------------------------------- public Staff() { staffList = new StaffMember[8]; staffList[0] = new Executive("Sam", "123 Main Line", "555-0469", "123-45-6789", 2423.07); staffList[1] = new Employee("Carla", "456 Off Line", "555-0101", "987-65-4321", 1246.15); staffList[2] = new Employee("Woody", "789 Off Rocker", "555-0000", "010-20-3040", 1169.23); staffList[3] = new Hourly("Diane", "678 Fifth Ave.", "555-0690", "958-47-3625", 10.55); staffList[4] = new Volunteer("Norm", "987 Suds Blvd.", "555-8374"); staffList[5] = new Volunteer("Cliff", "321 Duds Lane", "555-7282"); staffList[6] = new Commission("Janis", "Kristapa 16-37", "29374039", "180277-10148", 6.25, 0.2); staffList[7] = new Commission("Marta", "Kristapa 16-37", "22457577", "310507-22717", 9.75, 0.15); ((Hourly)staffList[6]).AddHours(35); ((Hourly)staffList[7]).AddHours(40); ((Commission)staffList[6]).addSales(400); ((Commission)staffList[7]).addSales(950); ((Executive)staffList[0]).AwardBonus(500.00); ((Hourly)staffList[3]).AddHours(40); }
//----------------------------------------------------------------- // Sets up the list of staff members. //----------------------------------------------------------------- public Staff() { staffList = new StaffMember[8]; staffList[0] = new Executive("Sam", "123 Main Line", "555-0469", "123-45-6789", 2423.07); staffList[1] = new Employee("Carla", "456 Off Line", "555-0101", "987-65-4321", 1246.15); staffList[2] = new Employee("Woody", "789 Off Rocker", "555-0000", "010-20-3040", 1169.23); staffList[3] = new Hourly("Diane", "678 Fifth Ave.", "555-0690", "958-47-3625", 10.55); staffList[4] = new Volunteer("Norm", "987 Suds Blvd.", "555-8374"); staffList[5] = new Volunteer("Cliff", "321 Duds Lane", "555-7282"); staffList[6] = new Commission("Rob", "Big road 12", "123456", "22-44-55-66", 6.25, 0.2); staffList[7] = new Commission("Jane", "Small road 12", "789-456", "26-568-77", 9.75, 0.15); ((Executive)staffList[0]).AwardBonus(500.00); ((Hourly)staffList[3]).AddHours(40); ((Commission)staffList[6]).AddHours(35); ((Commission)staffList[6]).AddSales(400.00); ((Commission)staffList[7]).AddHours(40); ((Commission)staffList[7]).AddSales(950.00); }
//----------------------------------------------------------------- // Sets up the list of staff members. //----------------------------------------------------------------- public Staff() { staffList = new StaffMember[6]; staffList[0] = new Executive("Sam", "123 Main Line", "555-0469", "123-45-6789", 2423.07); staffList[1] = new Employee("Carla", "456 Off Line", "555-0101", "987-65-4321", 1246.15); staffList[2] = new Employee("Woody", "789 Off Rocker", "555-0000", "010-20-3040", 1169.23); staffList[3] = new Hourly("Diane", "678 Fifth Ave.", "555-0690", "958-47-3625", 10.55); staffList[4] = new Volunteer("Norm", "987 Suds Blvd.", "555-8374"); staffList[5] = new Volunteer("Cliff", "321 Duds Lane", "555-7282"); ((Executive)staffList[0]).AwardBonus(500.00); ((Hourly)staffList[3]).AddHours(40); }