5.7. Implementing a Class
Now that the class name, instance variables, and methods are
declared in Photo.h, I can add the method
implementation in Photo.m:
#import "Photo.h"
@implementation Photo
- (NSString*) caption {
return caption;
}
- (NSString*) photographer {
return photographer;
}
@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 Trial