BenitoDannes

Untitled

Mar 6th, 2017
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. /**
  2.  * Fig. 8.9: EmployeeTest.java
  3.  * Composition demonstration
  4.  *
  5.  * Benito Danneswara
  6.  * 6 March 2017
  7.  */
  8.  
  9. public class EmployeeTest
  10. {
  11.     public static void main (String[] args)
  12.     {
  13.         Date birth = new Date (7, 24, 1949);
  14.         Date hire = new Date (3, 12, 1998);
  15.         Employee employee = new Employee ("Bob", "Blue", birth, hire);
  16.        
  17.         System.out.println (employee);
  18.     } // end main
  19. } // end class EmployeeTest
Advertisement
Add Comment
Please, Sign In to add comment