// Inheritance Project // employeehierarchy Module // Source code file: Person.java // Implements this inheritance hierarchy: // Person <-- Employee <-- Executive // Instance variables are set with the constructor; // instance variables are read with the toString method. public class Person { private String name; private char gender; private int age; public Person(String theName, char theGender, int theAge) { name = theName; gender = theGender; age = theAge; } @Override public String toString() { return name + " " + gender + " " + age; } }