// Inheritance Project // employeehierarchy Module // Source code file: Test1.java // Traditional test file. public class Test1 { public static void main(String[] args) { // Define and instantiate objects. Person p = new Person( "Alice", 'F', 21); Employee emp = new Employee( "Bob", 'M', 35, 1234, 85000.00); Executive exec = new Executive( "Rita", 'F', 46, 5678, 2500000,120000); // Print objects. System.out.println(p); System.out.println(emp); System.out.println(exec); // Test getCompensation methods. System.out.println(emp.getCompensation( )); System.out.println(exec.getCompensation( )); } }