Write a test application name employeetest that demonstrate


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.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a test application name employeetest that demonstrate
Reference No:- TGS0644756

Expected delivery within 24 Hours