Question: Fill in the template below to make a class definition for a class that describes an employee. For each method given you must provide the

Fill in the template below to make a class definition for a class that describes an employee. For each method given you must provide the method header with the appropriate implementation, return type and parameters. For each variable, you must select an appropriate name and type. Make sure your code conforms to the instructions given in the comments for each method. 2. public class Employee II variable holds 20 char for lastname private String private private, I/ variable holds the first name : II variable holds a 8 digit employee ID number : II variable holds a salary public // Constructor that uses two parameters. The first last name /1 and the second the first name and they cannot be later changed. // The salary and employee ID number should be set to zero public // This method return a string with the last name of the employee public // This method takes an integer and assigns it to the employee ID number public // This method takes a double value to set the employee salary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
