Objective-C Language Declare class method and instance method

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

Instance method are methods that are specific to particular classes. Instance methods are declared and defined followed by - (minus) symbol.

Class methods can be called by class name itself .Class methods are declared and defined by using + (plus)sign .

Syntax

  1. -(void)testInstanceMethod; //Class methods declare with "+" sign
  2. (void)classMethod;//instance methods declare with "-" sign


Got any Objective-C Language Question?