HRSystem_5/src/Organization/HireTransaction.java
// return object of specified Transaction subclass
return object of specified Transaction subclass
return object of specified Transaction subclass
private Transaction createTransaction( int type )
   {
      Transaction temp = null; 
      switch ( type )
      {
         case MANAGER: 
            createManager();
            break;
         case ADMINISTRATOR: 
            createAdministrator();
            break; 
         case ENGINEER: 
            createEngineer();
            break; 
      } 
      return temp; 
   }
private Transaction createTransaction ( int type ) { Transaction temp = null ; switch ( type ) { case MANAGER : createManager ( ) ; break ; case ADMINISTRATOR : createAdministrator ( ) ; break ; case ENGINEER : createEngineer ( ) ; break ; } return temp ; }
return object of specified Transaction subclass
return object of specified Transaction subclass
// temporary Transaction variable // determine which type of Transaction to create      // create new EmployeeInquiry transaction // create new Withdrawal transaction // create new Withdrawal transaction // end switch // return the newly created object