// An instance of Employee contains person's name, salary, and year hired.
public class Employee {
    private String name;  // The person's name
    private double pay; // The person's yearly pay
    private int hireDate; // The year hired
    
    // Constructor: a person with name n, pay s, and
    // year d hired
    public Employee(String n, double s, int d)
    {name= n; pay= s; hireDate= d;}
    
    // = the person's name
    public String getName()   {return name;}
    
    // = the person's pay
    public double getPay()   {return pay;}
    
    // = the year the person was hired
    public int getHireDate()   {return hireDate;}
    
    // = a String containing the data for the person
    public String toString()  {return name  + ", "  + pay  + ", "  + hireDate;}
    
    // Print employee p only if their total salary is > 5000
    public static void printEmployee(Employee e) {
        if (e.getPay() > 50000) 
        { System.out.println(e); }
    }
    
}