Possible Duplicate:
What do the plus and minus signs mean in Objective C next to a method?
I want to know the difference between the methods with – symbol and with +symbaol.
Ex.-(NSMutableArray *)getContactsList;
+(NSMutableArray *)getContactsList;
Thanks
Praveena.
The difference between the two methods is;
The method which start with “-” is an instance method. you can call that method using the object of the specific class.
Ex:
And The method which start with “+” is a Class method. you can call that method using class name.
Ex:
That is the main difference.
And one more thing in the Class method you can use the Static variables only, instance variables.
Regards,
Satya.