Declare class method and instance method

suggest change

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

Feedback about page:

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



Table Of Contents