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

Chapter 8. Categories, Posing, and Proto... > Protocols: Defining the Protocol and...

Protocols: Defining the Protocol and Interfaces

When you define a protocol for a method or methods, you usually store that protocol in a header file. You’ll create a protocol named Printing for a method named print in a file named printing.h:

@protocol Printing
-(void) print;
@end


  

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