I'd like to create a class instance within an array declaration. How is that done?
Something similar to the following:
myclassA.myarray = [ClassB() {name="Cleaning", deptId=12}, ClassB() {name="Repairs", deptId=30]
Where the array type is:
class ClassB : NSObject {
var name:String?
var deptId:Int?
}