Question: Class LinkedEmployee has methods getPtr() and setPtr() . The class also has a standard enterEmployee() method. Fred has written code that sets up 3 LinkedEmployee

Class LinkedEmployee has methods getPtr() and setPtr(). The class also has a standard enterEmployee() method. Fred has written code that sets up 3 LinkedEmployee objects using the code below. Add code that links them into a linked list. Be sure to set up head so that the linked list can be accessed. You can hardwire the linking; you dont need to use a loop to construct the linked list.

LinkedEmployee first = LinkedEmployee.enterEmployee();

LinkedEmployee second = LinkedEmployee.enterEmployee();

LinkedEmployee third = LinkedEmployee.enterEmployee();

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!