Question: kindly provide the code and output.. also explain the working. this is java programing. 1)Consider a class named Employee while considering the following criteria. a.Employee
kindly provide the code and output.. also explain the working. this is java programing.
1)Consider a class named Employee while considering the following criteria.
a.Employee class has three data fields i.e. a name (of type string) and specific empID (of type integer), and hourlyincome.
b.Two Constructors i) No argument Constructor ii) Three argument Constructor
c.It has a toString method, which returns a string in the following format.
i.Employee: Ali (ID: 786), Income: 90000
Write a menu-based application that prompt user to select the choice to do the following tasks
1-Add Employee Data to File
2-Search Employee
3-Exit
Create and write data related to employees in file named as "EmployeeData.ser".
In case of choice 2, prompt user to provide the employee id and name then match the given employee info in the EmployeeData.ser file. If employee exists the prompt a message record successfully found else record not found.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
