In the first page of Chapter 21, it says
"You typically create an empty mutable array using alloc/init or the class method array. For example you could have created the mutable array like this : NSMutableArray *employees = [NSMutable array]; " I was hoping the next line would explain the difference between the type types, as I don’t understand the difference between creating the array one way or the other.
#1 - NSMutableArray *employees = [[NSMutableArray alloc]init]
#2 - NSMutableArray *employees = [NSMutable array];
What is the difference between these two? Is one better than the other? I understand that #2 uses the NSMutable class’s “array” class method to create the array. Does this mean that the “array” method does the alloc and init for you? Please help!