Question: Question 3 (2.5 points) Write the implementation of the getNumItems() accessor method. This method provides access to the current number of items being held in

Question 3 (2.5 points)

Write the implementation of the getNumItems() accessor method. This method provides access to the current number of items being held in the list.

Question 4 (2.5 points)

Write the implementation of the appendItem() member function. This function will add the indicated item to the end of the list, thus growing the list size by 1. You should check first to see if the list is already full. If the list is full do not append, instead display an error message on the cerr output stream.

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!