Question: *IN JAVA PLEASE Staff.java public class Staff { public static void main(String[] args) { Person[] group = new Person[5]; group[0] = new Student(Mary Jane, 234);

*IN JAVA PLEASE
*IN JAVA PLEASE Staff.java public class Staff { public static void main(String[]
args) { Person[] group = new Person[5]; group[0] = new Student("Mary Jane",
234); group[1] = new Person("Joe Smith"); group[2] = new Employee("Anna Smiley", 23234);
Staff.java
public class Staff { public static void main(String[] args) { Person[] group = new Person[5]; group[0] = new Student("Mary Jane", 234); group[1] = new Person("Joe Smith"); group[2] = new Employee("Anna Smiley", 23234); group[3] = new Faculty("Jane Dane", 2343, "Lecturer"); group[4] = new Undergraduate("Edward Stone", 121, "Business"); for(Person p: group) { System.out.println(p); System.out.println(); } } }

To solve this problem, you should review the concepts related to inheritance and polymorphism. This problem requires you to develop classes involved in the following class diagram: Please follow the steps to complete this guided assignment: 1. Following the specifications given in the UML diagram below, develop all the required classes: Person.java Student.java as a subclass of Person Employee.java as a subclass of Person Undergraduate.java as a subclass of Student Faculty.java as a subclass of Student 3. Download the driver, Staff.java, compile and execute it. 4. If all the required methods are implemented properly, the driver program should generate outputs similar to the following: Name: Mary Jane Student:Number: 234 Name: Joe Saith Nane: Anna Smiley Eaployee ID: 23234 Eaployee I0: 23234 Wame: Jane Dane Employee ID: 2343 Faculty Rank: Lecturer Name: Edward Stone Student/umber: 121 Undergraduate major: Business Press any key to continue... 5. Include the following items in your final submission: Your completed code in the following, - Person.java - Student.java as a subclass of Person - Employee.java as a subclass of Person - Undergraduate.java as a subclass of Student - Faculty.java as a subclass of Student At least one screenshot of the running output A one or two-paragraph explanation of how the information is displayed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!