iphone - private interface AND multiple implementation -
there simple object-c code snippet got ios project:
@interface store (private) @end @implementation store (private) @end @implementation store
my questions are:
what
(private)
mean in code, private interface & implementation?what last line
@implementation store
mean? empty public implementation? without@end
?since there 2
@implementation store
in above code, mean objective-c support multiple implementation single interface?
what (private) mean in code, private interface & implementation?
-(private)
means decalring/implementing objective-c category. in caseprivate
name. wouldn't make difference ifstore (myprivatemethods)
what last line @implementation store mean? empty public implementation? without @end?
-@implementation store
actual implementation part of classstore
. not sure happens if@end
missing.since there 2 @implementation store in above code, mean objective-c support multiple implementation single interface?
- there aren't 2 implementations ofstore
. there 1 implementation of classstore
, 1 implementation of category of class -store (private)
.
Comments
Post a Comment