class subash{
var proper:String
init(name:String) {
self.proper=name
}
}
var obj=[subash]()
obj[0]=subash(name: "skills")
print(obj[0].proper)
error is Fatal error: Index out of range
i have created a new array with the type of Subash, I failed to create elements of type subash in the array, Am I misunderstanding