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)