Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Development Of Knowledge Framework For Affective Content Analysis

Authors: Swarnangini Sinha

1st Edition

B0CQJ13WZ1, 979-8223977490

More Books

Students also viewed these Databases questions

Question

Does news coverage favor whites?

Answered: 1 week ago