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.