Question: Create a class called ArrayOfItems that extends AbstractItems. a . Create a constructor that takes an integer parameter called size and use it to create

Create a class called
ArrayOfItems that extends
AbstractItems.
a. Create a constructor that
takes an integer parameter
called size and use it to
create an Object array of
that size to hold your items.
b. Use the array to implement
the remaining abstract
methods inherited from the
Items class: add, size, and
get. Note that size should
return the number of items
that have been added to the
array, not the size of the
array. In other words, if your
initial array is large enough
to hold 10 items, but only 2
items have been added, your
size method should return
2, not 10. Once the array is
full, the add method should
ignore additional values.
c. You should include a main
method to test the addAll
and toString methods as
well as the add, get, and
size methods.
Create a class called Node. A Node
has two instance variables.
a. An Object named item.
b. A reference to another Node
called next.
Create the appropriate accessors
and mutators for both variables.
Create a class called ArrayOfItems that extends

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 Programming Questions!