Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part 1: Language > Exploring Protocols and Categories

Chapter 5. Exploring Protocols and Categories

Objective-C provides two additional schemes for defining methods: protocols and categories. This chapter will describe both, explain how they differ, show how they are used, and present some design patterns that incorporate them.

Objective-C protocols are equivalent to Java interfaces. Protocols are employed just as interfaces are in Java, although less frequently. Objective-C programmers are more likely to use a relaxed form called an informal protocol.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint