Een object is een uitvoering van een class of variabele.
Om een object uit een class te maken moet je 2 stappen doorlopen:
- Je wijst geheugen toe aan het object (alloc).
- Je geeft de initiële status aan van je object (initiatie).
Er zijn 2 manieren om dat te doen:
NSString* myString = [NSString string];
This is the more convenient automatic style. In this case, you are creating an autoreleased object, which we’ll look at in more detail later. In many cases, though, you need to create an object using the manual style:
NSString* myString = [[NSString alloc] init];
This is a nested method call. The first is the alloc method called on NSString itself. This is a relatively low-level call which reserves memory and instantiates an object.

