Hi I am trying to implement a class that inherits from AbstractCollection, the abstract class, but I don't know how to "add" to the collection. There is no actual container like array or vector provided in AbstractCollection class, so how do I implement an "add" or "remove" to a class that extends from AbstractCollection? Thanks!
Hi, I was thinking more of the physical implementation of a class that overrides the add/remove methods in AbstractCollection. For instance, a queue that goes like a, b, d, e, f, and you wish to "add" a c so that as a whole the queue becomes a, b, c, d, e, f. How do you access the inner container within AbstractCollection to add/remove? Thanks!