Yes, it Photocan use any method / property / ivar / etc (with the exception of those declared iVars @private) NSObjectwhen subclassing NSObject:
Photo *myPhoto;
myPhoto = [[Photo alloc] init];
NSLog(@"Photo object: %@", myPhoto);
NSLog(@"Photo description: %@", [myPhoto description]);
NSLog(@"Photo caption: %@", [myPhoto caption]);
NSLog(@"Photo photographer: %@", [myPhoto photographer]);
More on @private→ SO Question: what-does-private-mean-in-objective-c
NSObject Class reference
source
share