Question: Question 1. Define a class Employee that will hold the following information: employee ID, first and last name. Make sure all the fields are private
Question 1.
Define a class Employee that will hold the following information: employee ID, first and last name. Make sure all the fields are private and the class contains getters and setters.
Question 2
In the main method create an object of Employee class, read employee ID, first and last name from the console and update objects fields using accessors. Then print objects info to the console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
