Question: Write a class that has the subsequent fields: first name, last name, id number, department, payRate, hoursWork with constructors that accepts the subsequent values as arguments and assigns them to the appropriate fields.
Code:
private String firstName;
private String lastName;
int idNumber;
private String department;
private String position;
private double monthlySalary;
You need to prepare a program to prepare a class.