207k views
0 votes
(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasses of Employee. A person has a name, address, phone number, and email address.A student has a class status (freshman, sophomore, junior, or senior). Define the status as a constant. An employee has

User Sherlene
by
4.3k points

1 Answer

3 votes

Answer:

Step-by-step explanation:

The following code is written in Java and creates all the classes as requested with their variables, and methods. Each extending to the Person class if needed. Due to technical difficulties I have attached the code as a txt file below, as well as a picture with the test output of calling the Staff class.

(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person-example-1
User Collin Stevens
by
5.4k points