对于类定义中
@interface circle:NSOject
{
//
}
-(void).........
-(void).........
@end@implementation circle
-(void).....
.........
@end这种情况,在接口中声明方法和不声明方法直接在@implementation中写方法有什么区别?interface
@interface circle:NSOject
{
//
}
-(void).........
-(void).........
@end@implementation circle
-(void).....
.........
@end这种情况,在接口中声明方法和不声明方法直接在@implementation中写方法有什么区别?interface
#import "myclass.h"所以,在头文件中被定义的方法均可供被外部类访问 (public)