How to make multiple interfaces in Objective-C?

How can I do the following in Objective-C (examples below are in pseudocode):

  • interface A extends B, C

  • interface A

interface B

for class X, A, B

3. interface A

class X implements A

class Y implements A

interface B

class Z extends Y implements B

thanks!

+6
objective-c
source share
1 answer

Sounds like homework, you have to take the first step: http://en.wikipedia.org/wiki/Objective-C

look at 2.2 Interfaces and implementations

MyClass extends class

@interface MyClass : Class { } @end 

MyClass extends the capabilities of the Interface1 and Interface2 class

  @interface MyClass : Class <Interface1, Interface2> {} @end 
+21
source share

All Articles