Question: Hey, I have this homework from my data structures class using java that I'm having trouble solving. I have defined the class human with firstName

Hey, I have this homework from my data structures class using java that I'm having trouble solving.

Hey, I have this homework from my data structures class using java

I have defined the class human with firstName and lastName

I have definied class student extends from human with field student number

I am having trouble with the class worker. I dont know how to write that code. Do I also extend it from human? is that allowed? Would you please be able to write that code for me and I can closely analyze the steps. Please and thank you

In this project you will write the code to implement a hierarchy of the Classes Human, Student and Worker. .Define a class Human holding a first name and a last name Define a class Student derived from the Human that has a field student number (5-10 digits/ letters) Define a class Worker derived from Human with fields WeekSalary and WorkHoursPerDay and method MoneyPerHour() that returns the payment earned by hour by the worker Define the proper constructors and methods for the classes in your class hierarchy Initialize an array of 10 students and sort them by student number in ascending . order Initialize a list of 10 workers and sort them by payment per hour in descending order

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!