Instantiation in Objective-C

Instantiation in Objective-C consists of allocating memory for the instance and calling init.

NSString* foo = [[NSString alloc] init];
This entry was posted in Objective-C. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Why ask?

  • Advertisement

  • Categories