1. Create a new Class Library - PersonLibrary
2. Add an ABSTRACT Class Person with the following members:
private string _firstName; private string _lastName; private string _email; Add a constructor that initializes the fields Add the properties for each field get and set Override the ToString() method to output all of the fields together as one string 3. Add an ABSTRACT class Employee which inherits from Person:
private int _empld Add a constructor which initializes the fields. Add a Get for Employeeld Override the ToString() method to output all of the fields together as one string 4. Add an ABSTRACT class HourlyEmployee which inherits from Employee:
private decimal _hourlyWage Add a constructor which initializes the fields. Add a Get and Set for HourlyWage Add an ABSTRACT Method Calculate Paycheck() Override the ToString() method to output all of the fields together as one string 5. Add an ABSTRACT class Salary Employee which inherits from Employee:
private decimal _annualWage Add a constructor which initializes the fields. Add a Get and Set for HourlyWage Add a Calculate Paycheck() which returns _annualWage / 52; Override the ToString() method to output all of the fields together as one string 6. Add a CONCRETE class PartTimeEmployee which inherits from HourlyEmployee :
private decimal _hourlyWage private double _hoursWorked; Add a constructor which initializes the fields. Add a Get for the Fields Override the Calculate Paycheck() Method to return the hourlywage * hoursworked Override the ToString() method to output all of the fields together as one string 7. Add a CONCRETE class FullTimeEmployee which inherits from HourlyEmployee:
Add a constructor which initializes the fields. Override the Calculate Paycheck() Method to return the hourlywage * 40 Override the ToString() method to output all of the fields together as one string 8. Add a CONCRETE class Manager which inherits from SalaryEmployee:
private double _vacationHours Add a constructor which initializes the fields Add a Get for the Fields Override the Calculate Paycheck() Method to return the annualWage /52 as well as add 2 hours to vacation Override the ToString() method to output all of the fields together as one string 9. Generate a class Diagram and add it to the project.
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference
and should not be submitted as is. We are not held liable for any misuse of the solutions.
Please see the
frequently asked questions page
for further questions and inquiries.
Kindly complete the form.
Please provide a valid email address and we will get back to you within 24 hours.
Payment is through
PayPal ,
Buy me a Coffee
or
Cryptocurrency .
We are a nonprofit organization however we need funds to keep this organization operating
and to be able to complete our research and development projects.