// Exercise8_2.java: Create three classes Person,
// Student, Employee, Faculty, and Staff
// To avoid name conflict with another Student class, Student class
// is named Student1

import java.util.Date;

class Person
{
  protected String name;
  protected String address;
  protected String phoneNumber;
  protected String email;

  public String toString()
  {
    return "Person";
  }
}

class Student1 extends Person
{
  public static int FRESHMAN = 1;
  public static int SOPHOMORE = 2;
  public static int JUNIOR = 3;
  public static int SENIOR = 4;

  protected int status;

  public String toString()
  {
    return "Student";
  }
}

class Employee extends Person
{
  protected String office;
  protected int salary;
  protected Date dateHired;

  public String toString()
  {
    return "Employee";
  }
}

class Faculty extends Employee
{
  public static int LECTURER = 1;
  public static int ASSISTANT_PROFESSOR = 2;
  public static int ASSOCIATE_PROFESSOR = 3;
  public static int PROFESSOR = 4;

  protected String officeHours;
  protected int rank;

  public String toString()
  {
    return "Faculty";
  }
}

class Staff extends Employee
{
  protected String title;

  public String toString()
  {
    return "Staff's title is " + title;
  }
}

