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.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
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.