NSMutable class declares the programmatic interface to a mutable, unordered collection of distinct objects.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
NSCounted class, which is a concrete subclass of
NSMutable, supports mutable sets that can contain multiple instances of the same element. The
NSSet class supports creating and managing immutable sets.
There should be little need of subclassing. If you need to customize behavior, it is often better to consider composition instead of subclassing.