Question: Create a class Employee with following fields and methods: Fields: Field Name Data Type E no EFname string E_Lname string E DOJ string E_Department string

Create a class Employee with following fields and methods: Fields: Field Name Data Type E no EFname string E_Lname string E DOJ string E_Department string E_Designation string E Salary Double Int Methods: 1. void Input): It takes the input of all field from the user 2. void Display0: It displays all the fields 3 void Employee) Constructor with no parameters. Assigns all fields as blanks or zero 4 void Employee (int, String,String,String,String,String.double): Assigns all fields with corresponding formal parameters The main) should create three instances E1,E2,E3 of the class Employee. For instance E1 void Employee0 constructor is used for assigning values to fields For instance E2 void Employee (int, String,String,String,String,String,double) constructor is used for assigning values to fields. For instance E3, Input0) should be called for taking input of fields. Call Display0 for all three instances for displaying the fields
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
