Create a class called employee that includes three pieces


Create a class called Employee that includes three pieces of information as instance variables-a first name (type string), a last name (type string),and a monthly salary (type integer). Your class should have a constructor that initializes the three instance variables. Provide a property for each instance variable. The property for the monthly salary should ensure that it value remains positive-if an attempt is made to assign a negative value, leave the original value. Write a test module named EmployeeTest that demonstrates class Employee's capabilities. Create two employee objects and display each object's yearly salary. Then give each employee a 10% raise and display each Employee's yearly salary again. 

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Create a class called employee that includes three pieces
Reference No:- TGS0145310

Expected delivery within 24 Hours