Declare class method and instance method
suggest changeIntroduction
Instance methods belong to a particular instance. Declare and define them with a leading -.
Class methods are called on the class itself. Declare and define them with a leading +.
Syntax
- (void)testInstanceMethod; // instance method
+ (void)classMethod; // class method
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents