Advertisement
Guest User

Untitled

a guest
May 5th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. alloc = allocates a chunk of memory to hold the object, and returns the pointer
  2. init = sets up the initial condition of the object and returns it.
  3. 2 types of methods in Obj-C
  4. 1) instance method = a method whose execution is scoped to a particular instance of the class. In other words, before you call an instance method, you must first create an instance of the class. Instance methods are the most common type of method.
  5. 2) class method = a method whose execution is scoped to the method’s class. It does not require an instance of an object to be the receiver of a message.
  6. For instance methods, the declaration is preceded by a minus sign (-)
  7. For class methods, the corresponding indicator is a plus sign (+)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement