Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Interface and Property

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 235
    Comment on it

    Interface

    Interface is where you define the attributes and methods of class.
    In objective C the file where the declaration of class is done is called the interface file and the file where the class is defined is called the implementation file.
    i.e .h and .m file respectively.

    Syantax
    @interface : NSObject

    Property

    In objective C property is a way to define the information that a class is intended to encapsulate.
    In simple word property automatically create setter and getter methods in class.


    Syantax:
    @property (nonatomic) int userId;

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: