Question: Code the following ADTs (classes), making sure to follow the instructions in the bulleted lists: 1.Write a class name Employee A. that has the following

Code the following ADTs (classes), making sure to follow the instructions in the bulleted lists:

1.Write a class name Employee

A. that has the following fields:

name

idNumber

department

position (job title)

b. and the following methods:

A no-argument constructor

A constructor that sets the data to passed values

Getters and setters for each piece of data

A toString( ) method to display the object data

c. Include Javadoc comments for the class and every method

d. Create a separate Java application to unit test this class (zyBook section 6.6) by creating 3 objects.

e. Generate the Javadoc/API document for this ADT

2.Write a class name Car

a. that has the following fields:

yearModel (integer holding the cars year model)

make (String holding the make of the car)

speed (integer holding the cars current speed)

b.and the following methods:

A no-argument constructor

A constructor that sets the data to passed values

Getters and setters for each piece of data

accelerate: adds 5 to the speed field each time it is called

brake: subtracts 5 from the speed field each time it is called

A toString( ) method to display the object data

c.Include Javadoc comments for the class and every method

d.Create a separate Java application to unit test this class (zyBook section 6.6) by creating 2 objects.

e.Generate the Javadoc/API document for this ADT

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!