Declare class method and instance method

suggest change

Introduction

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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents