Link Details

Link 881895 thumbnail
User 225256 avatar

By mswatcher
Submitted: Nov 23 2012 / 11:13

So far we've taken a look at some basic objects: Strings and Arrays. I think its about time we take the next step and dive into the creation of our own objects! So today I'm going to go over creating custom classes, properties, and methods.   The first thing to note, is that when you create a new class in objective-c you have 2 files, YourClass.h and YourClass.m. The “.h” file is where you’ll define all of your public methods and properties, where as in the “.m” you’ll have the actual implementation of your class, along with any private fields and methods.
  • 1
  • 0
  • 111
  • 22

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Upvoters (1)

Downvoters (0)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java