🎯 Objective
Write a class named Employee
that has the following fields:
firstName.
ThefirstName
field is astring
that holds the employee’s first name.lastName.
ThelastName
field is astring
that holds the employee’s last name.idNumber.
TheidNumber
is anint
variable that holds the employee’s ID number.department.
Thedepartment
field is astring
that holds the name of the department where the employee works.position.
Theposition
field is astring
that holds the employee’s job title.
Program User prompts:
Employee information from the user for one instance of the Employee
Program outputs
Data for the employees
Program Notes:
Use getters/setters for all of the attributes.
For the output, you can create a method within the class to output the information. Please be sure to use appropriate labels.
\uD83D\uDDD2Â Requirements
Create 1 Object of Employee populating the data via a five-argument constructor (User input)
🚚 Deliverable
Upload the following:
Full source code (.cpp file or .txt file)
Screenshot of the Console with the code executing