In context of a Swift subscript, which of the following is correct?
Correct Answer: struct MyStruct { var myStr = [String]() subscript (index : Int) -> String{ get{ return myStr[index] } set{ myStr[index] = newValue } } }
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Swift MCQ Questions