Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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