Create two employee objects and display each objects yearly


Solve this program

Question: 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 employee's yearly salary again.

Answer the program in java programming.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create two employee objects and display each objects yearly
Reference No:- TGS0942815

Expected delivery within 24 Hours