One of the most common tasks to perform with classes is the creation of new objects. In Objective-C it takes two steps to create an object; in order, you must
Allocate memory to store the new object.
Initialize the newly allocated memory to appropriate values.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.