/**
 * Test both the FullTImer and PartTimer classes
 * with override fields and methods
 *
 */

public class xEmployeeTest
{
    /**
     * main method to test the classes
     */

    public static void main (String[ ] args)
    {        

        FullTimer e1 = new FullTimer("Dir","Sultan","Sam","M",48,45000,12);  
        FullTimer e2 = new FullTimer("Mgr","Smith","Mary","F",35,40000,12);  
        FullTimer e3 = new FullTimer("Sec","Stevens","Bob","M",28,35000,10);

        PartTimer e4 = new PartTimer("NE","Williams","Bill","M",45,30,25);  
        PartTimer e5 = new PartTimer("NE","Johnson","Joan","F",32,25,22);  
 
        System.out.println(Employee.getCompanyName());      

        System.out.println(e1.getFullname());           //For FullTimers, 
        System.out.println(e2.getFullname());           //getFullName() of Employee 
        System.out.println(e3.getFullname());
        System.out.println(e4.getFullname());           //For PartTimers, getFullname() 
        System.out.println(e5.getFullname());           //getFullname() of PartTimer

        System.out.println();
           
        /**
         * Using the Appropriate toString( ) method.
         */

        System.out.println(e1 + "\n" + e2 + "\n" + e3);     //It will choose the 
        System.out.println(e4 + "\n" + e5);                 //the correct toString()
   }
}