Define and implement a class pen that has an instance of


1. Write a reference-based implementation of a queue that uses a linear linked list to represent the items in the queue. You will need both a head reference and a tail reference. When you are done, compare your implementation to the one given in this chapter that uses a circular linked list with one external reference. Which implementation is easier to write? Which is easier to understand? Which is more efficient?

2. Define and implement a class Pen that has an instance of Ball as one of its datafields. Provide several members for the class  Pen, such as the data field color and methods isEmpty and write.

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Define and implement a class pen that has an instance of
Reference No:- TGS01011149

Expected delivery within 24 Hours