Subscript Overloading in Swift

The concept of providing multiple subscripts for a class or structure is called as subscript overloading. The appropriate subscript which will be used during implementation depends upon the type of value contained within the subscript brackets when the subscript is used.

Leave a Reply

%d bloggers like this: