Re: implement directly a protocol?
Re: implement directly a protocol?
- Subject: Re: implement directly a protocol?
- From: "Erik M. Buck" <email@hidden>
- Date: Sat, 10 Nov 2001 11:04:45 -0600
>
Is it permitted to implement directly a protocol? The reason I ask is that
>
the compiler doesn't complain for:
No. Class names and protocol names do not conflict.
>
>
@protocol A
>
@end
Above you declared a protocol name
>
>
@implementation A
Here you declared a new class name. @interface is not required for classes.