Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Java 2. Write a class named Employee that has the following properties. Name: The Name property holds the employee's name. IdNumber: The IdNumber

Please use Java 2. Write a class named Employee that has the following properties.

Name: The Name property holds the employee's name.

IdNumber: The IdNumber property holds the employee's ID number.

Department: The Department property holds the name of the department in which the employee works.

Position: The Position property holds the employee's job title.

The class should have the following overloaded constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate properties: employee's Name, IdNumber, Departmentand Position. A constructor that accepts the following values as arguments and assigns them to the appropriate properties: employee's Name and IdNumber. The Departmentand Position properties should be assigned an empty string. A parameter less constructor that assigns empty string to Name, Department and Position properties, and 0 to IdNumber.

image text in transcribed

Create three employee objects to hold the following information: Name Susan Meyers Mark Jones Joy Rogers id Number 47899 39119 81774 Department Accouting Position Vice President Programmer Engineer Manufacturing

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

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

Define promotion.

Answered: 1 week ago

Question

Write a note on transfer policy.

Answered: 1 week ago

Question

Discuss about training and development in India?

Answered: 1 week ago

Question

Explain the various techniques of training and development.

Answered: 1 week ago

Question

4. Are there any disadvantages?

Answered: 1 week ago

Question

3. What are the main benefits of using more information technology?

Answered: 1 week ago

Question

start to review and develop your employability skills

Answered: 1 week ago