Create class includes instance variables automatic properties

Create class includes instance variables automatic properties

Computer Science

Create a class called Employee that includes three pieces of information as either instance variables or automatic properties – a firstname (type string), a last name (type string) and a monthly salary (decimal) Your class should have a constructor that initializes the three values. Provide a property with a get and set accessor for any instance variable. If the monthly salary is negative, the set accessor should leave the instance variable unchanged. Write a test application name EmployeeTest that demonstrate class Employees capabilities. Create two Employee objects and display each objects yearly salary. Then give each employee a 10% raise and display each employees yearly salary again.

Order from us and get better grades. We are the service you have been looking for.