Question: Beginner Java Programming Design a class called Person with its two subclasses Student and Employee. Also Employee has two subclasses called Faculty and Staff. A

Beginner Java Programming

Beginner Java Programming Design a class called Person with its two subclasses

Design a class called Person with its two subclasses Student and Employee. Also Employee has two subclasses called Faculty and Staff. A Person has a name, phone number and email address. A Student has status : for Freshman, Sophomore, Junior and Senior. An Employee has salary A Faculty has office hours A Staff has rank. What you need to do? in sovo 1 Draw the UML diagram based on explanation above. Override toString method in each class to display the person's name and also the name of the class. Write test program and do the following: a. Create a Student object called stul Create an Employee object called empl Create a Faculty object called faci Create a Staff object called stal Create an array of type Person of size 4 and then assign each of the object created above to the array. In a for-loop, invoke the toString method to print each object's name and also the name of the class. Dynamic Binding should kick in here and show the idea of Polymorphism. That is, altough the array is of type Person, the correct object's name and class will be printed correctly

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!