rahajengdwp

Untitled

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