Objective-C LanguageDeclare class method and instance method


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