Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fig. 8.9: EmployeeTest.java
- // Composition demonstration.
- public class EmployeeTest
- {
- public static void main( String[] args )
- {
- Date birth = new Date( 7, 24, 1949 );
- Date hire = new Date( 3, 12, 1988 );
- Employee employee = new Employee( "Bob", "Blue", birth, hire );
- System.out.println( employee );
- } // end main
- } // end class EmployeeTest
Add Comment
Please, Sign In to add comment