okami
okami

Reputation: 2153

@protocol extends @protocol

can @protocol extend @protocol ?

@protocol Prot1 : Prot2
@end

like in java:

public interface Interface1 extends Interface2 {
}

Upvotes: 11

Views: 1864

Answers (1)

kennytm
kennytm

Reputation: 523214

Yes, but with the syntax

@protocol Prot1 <Prot2, Prot3, Prot4> 
@end

Upvotes: 25

Related Questions