Hour 10. Declaring Methods in an Interface File
What You’ll Learn in This Hour
• Examining the difference between class and instance methods
• Naming methods properly
• Returning complex data structures as method results
Working with Methods in a Class
As you have seen in the previous hours of this part, you declare classes which can contain instance variables and declared properties in addition to the information in the class declaration itself. The other major component of a class is its methods. Methods are the messages to which instances of the class (or, in some cases, the class itself) respond. They provide the functionality for the class.
In this hour, you learn how to declare and define your classes. In order to help you create useful ...
Get Sams Teach Yourself Objective-C in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.