Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
java program
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 keep it simple pls
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started