Question: 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
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
Get step-by-step solutions from verified subject matter experts
