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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started