I have a collection inside a class module. I\'d like to restrict the object type that is \"addable\" to this collection, i.e. collection should only ever accept objects of o
Yes. The solution is to make your collection private and then make public wrapper functions to add, remove, getitem and count etc.
It may seem like hassle to write the additional code but it is a more robust solution to encapsulate the collection like this.