/*********************************************************************
 * Test the hierarchy of classes as follows:
 *    aPerson as an interface
 *    Employee as an abstract class that implements aPerson
 *    FullTImer and PartTimer classes as they extend Employee
 *
 *********************************************************************/

public class xEmployeeTest
{
    public static void main (String[ ] args)
    {        

        Employee[ ] emp = new Employee[10];         //Create an array of Employees

        emp[0] = new FullTimer("Dir","Sultan","Sam","M",48,78000,12);      
        emp[1] = new FullTimer("Mgr","Smith","Mary","F",35,62400,12);   
        emp[2] = new FullTimer("Sec","Stevens","Bob","M",28,44200,10);

        emp[3] = new PartTimer("NE","Williams","Bill","M",45,30,25);  
        emp[4] = new PartTimer("NE","Johnson","Joan","F",32,25,22);  
  
        System.out.println("---Printing using a Loop --- \n");

        for (int i = 0; i < 5; i++)
        {                       
            System.out.println(emp[i] );
            System.out.println(emp[i].getFullname() );
            System.out.println(emp[i].getWeekPay()  );
            System.out.println();
        }
   }
}