1. In the class BagOfStrings, what is the difference between the methods getCapacity and getNumberOfStrings? 2. Why are the methods getIndexOf and removeEntry in the class BagOfStrings private instead...


1. In the class BagOfStrings, what is the difference between the methods getCapacity and getNumberOfStrings?


2. Why are the methods getIndexOf and removeEntry in the class BagOfStrings private instead of public?


3. To define a new class BagOfCoins to represent a bag of Coin objects, where the class Coin is as defined, what changes would you need to make to the class BagOfStrings?



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here