Source of EmployeeMain.java


  1: //EmployeeMain.java

  3: public class EmployeeMain
  4: {

  6:     public static void main(String [] args)
  7:     {

  9:         // Create the objects
 10:         EmployeeManager manager = new EmployeeManager(25);
 11:         EmployeeStaff   staff1  = new EmployeeStaff("Michele");

 13:         // Load data into the objects using the Person class's method
 14:         manager.setData("Michele", "Sales", "03-03-1975", 70000);
 15:         staff1.setData ("Bob",     "Sales", "02-02-1980", 50000);

 17:         // Print the objects
 18:         manager.printInfo();
 19:         System.out.println("Annual bonus: " + manager.getAnnualBonus());
 20:         staff1.printInfo();
 21:         System.out.println("Annual bonus: " + staff1.getAnnualBonus());
 22:     }
 23: }