Home > DeveloperSection > Interviews > What is the instance methods?

Posted on    August-21-2015 11:28 PM

 iPhone iPhone  Ios  Objective C 
 1 Answer(s)
  395  View(s)
Rate this:

Tarun Kumar

Total Post:107

Posted on    August-21-2015 11:28 PM

Instance methods are essentially code routines that perform tasks so instances of classes we create methods to get and set the instance variables and to display the current values of these variables.

Declaration of instance method :

    – (void)click me: (id)sender;

1.       Void is return type which does not giving any thing here.

2.       Click me is method name.

3.       Id is data type which returns any type of object.

Don't want to miss updates? Please click the below button!

Follow MindStick