JAVA Assginment
Programming Project 11.2 Programming Fundamentals II - Dallas College
Instructions:
Note: this assignment is based on Exercise 11.2 from your eTextbook on Revel
Create a new Java project in Eclipse. Download the Java program located in the adjacent
file: Exercise11_02.java, copy its contexts into the Java project you just created and add
all the required class definitions to complete it and produce the desired output.
Do not modify the main method.
Grading is based on the successful completion of the following steps:
1. Design a class named Person and its two subclasses named Student and Employee.
2. Make Faculty and Staff subclasses of Employee. 3. A person has a name, address, phone number, and e-mail address.
4. A student has a class status (freshman, sophomore, junior, or senior). Define the
status as a constant.
5. An employee has an office, salary, and date hired.
6. A faculty member has office hours and a rank.
7. A staff member has a title.
8. Add constructor method to the Person class using Eclipse:
a. Right-click where you want to add the constructor
b. Click Source => Generate constructor using Fields…
c. Select only the name field and click the Generate button
9. Add setter and getter methods to the Person class using Eclipse:
a. Right-click where you want to add the methods in the class
b. Click Source => Generate Getters and Setters…
c. Select all fields
d. Click the Generate button
10. Override the toString method in the Person class to display the class name and the person’s name. You can use the getClass().getSimpleName() to get the class
name.
11. Do not add a toString method to the subclasses.
12. Add a constructor method to each subclass using Eclipse. On each class:
a. Right-click where you want to add the constructor
b. Click Source => Generate Constructors from Superclass
c. Click the Generate button
13. Complete and test your program
Programming Project 11.2 Programming Fundamentals II - Dallas College
Program output: