Question: -Make a constructor bag(int n) that receives an integer and causes array pA to be created with n entries. n is stored into a new

-Make a constructor bag(int n) that receives an integer and causes array pA to be created with n entries. n is stored into a new integer called bagSize. Make the size of the array 1000.

-Make a method in c++ called int remainingSpace() that returns the amount of space left inside of the above arrayed object.

Use the following pointer syntax to create the arrays: point *pA = new point[n];

Thanks in advance!

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!