Can someone please HELP???
public class Person {
private String name;
private String address;
private String phoneNumber;
private String email;
public Person(){
}
public Person(String name, String address, String phoneNumber,String email) {
this.name =name;
this.address=address;
this.phoneNumber=phoneNumber;
this.email=email;
}
public String toString() {
return "Person "+ this.getName();
}
public String getName(){
return name;
}
}
class Student extends Person {
private static int FRESHMAN = 1;
private static int SOPHOMORE = 2;
private static int JUNIOR = 3;
private static int SENIOR = 4;
private int status;
public Student(){
}
public Student(int status){
this.status=status;
}
public Student(String name,String address,String phone,String email,int status){
super(name,address,phone,email);
this.status=status;
}
public String toString() {
return "Student "+ this.getName();
}
}
class Employee extends Person {
private String office;
private int salary;
private MyDate dateHired;
public Employee () {
}
public Employee(String office, int salary){
this.office=office;
this.salary=salary;
}
public Employee(String name, String address, String phone, String email, String office, int salary){
super(name,address,phone,email);
this.office=office;
this.salary=salary;
}
public String toString() {
return "Employee "+ this.getName();
}
}
class MyDate {
int year;
int month;
int day;
}
class Faculty extends Employee {
private String officeHours;
private int rank;
public Faculty(){
}
public Faculty(String officeHours, int rank){
this.officeHours=officeHours;
this.rank=rank;
}
public Faculty(String name,String address,String phone,String email, String officeHours, int rank){
super(name,address,phone,email,officeHours,rank);
this.officeHours=officeHours;
this.rank=rank;
}
public String toString() {
return "Faculty "+ this.getName();
}
}
class Staff extends Employee {
private String title;
public Staff(){
}
public Staff(String title){
this.title=title;
}
public Staff(String name,String address,String phone,String email, String title){
super(name,address,phone,email,title);
this.title=title;
}
public String toString() {
return "Staff's title is " + title;
}
}