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?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here