/**************************************************************************
 * The Employee Tester class
 * Calling multiple constructors 
 *************************************************************************/
public class EmployeeTest
{
    public static void main (String[ ] args)
    {        
        System.out.println("Company name: "     + Employee.getCompanyName() );
        System.out.println("Number employees: " + Employee.getEmployeeCount() );

        Employee e1 = new Employee("Dir","Sultan","Sam","M",48);    //calling the large constructor
        Employee e2 = new Employee("Mgr","Smith","Mary","F",35);    
        Employee e3 = new Employee("Sec","Stevens","Bob","M",28);

        Employee chief = new Employee("Pres");                      //calling the small constructor
        Employee vp    = new Employee("VP");
        
        String name1 = e1.getFullname("Mr.");                       
        System.out.println(name1);
        String name2 = e2.getFullname("Ms."); 
        System.out.println(name2);
        String name3 = e3.getFullname("Mr."); 
        System.out.println(name3);
        String name4 = chief.getFullname("Mr. President"); 
        System.out.println(name4);
        String name5 = chief.getFullname("Mr. Vice president"); 
        System.out.println(name5);

        System.out.println("Number employees: " + Employee.getEmployeeCount() );
        System.out.println();
        
        System.out.println(e1.toString() );            //call the toString() method
        System.out.println(e2);                        //no need to say toString()
        System.out.println(e3);
        System.out.println(chief + "\n" + vp);         //you can concatenate them
    }
}