Loading
notes intro/old submit AP Problems the dump links
 

Polymorphism activity

 

Lets look at employee/staff member again - open that up in bluej or eclipse.

 

  1. In a new class called HR, create an array size 10 of StaffMembers. In the constructor, fill them randomly with hourly, executive and employee.
  2. Create a method to pay all of them quickly
  3. Create a method to print them all out.
  4. Advanced people, Use instanceof to give 500$ bonus to executives