Question: java program keep it simple pls Create a project named labExamCCCS221 containing following class: 1. numberOfEmployees is incremented when an employee is created. 2. The
Create a project named labExamCCCS221 containing following class: 1. numberOfEmployees is incremented when an employee is created. 2. The first constructor does nothing. 3. The second constructor initializes the id, the firstName and the lastName. 4. The setId method sets the new Id if the new id is greater than 0 . 5. The getName method returns the first name and the last name of the employee. 6. The getnumberOfEmployees method returns the values of numberOfEmployees. 7. The toString method returns the description of the student. 8. Add to the class Employee the method main in which: a. Create an object El with the first constructor. b. Create an object E2 with the second constructor (use your id, first name and ) c. Set the id of EI to 10000 d. Display the number of employees e. Display all information of E2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
