Yes. I think that's what I was trying to get at with a Set supertype and ModifiableSet subtype. Just with a change of names: I wouldn't call the supertype "unmodifiable" if it allows subtypes to...
Type: Posts; User: pbrockway2
Yes. I think that's what I was trying to get at with a Set supertype and ModifiableSet subtype. Just with a change of names: I wouldn't call the supertype "unmodifiable" if it allows subtypes to...
I'm not sure I follow that Kevin.
Suppose I have a MyCollection type and an unrelated UnmodifiableMyCollection type with the same behaviour (except for anything that would modify the collection). ...