@interface A : B<C>
@interface ViewController : UIViewController<MSBClientManagerDelegate>
So I guess I get A is subclass of B, and B is superclass of A, but what's the relationship between B and C?
@interface A : B<C>
@interface ViewController : UIViewController<MSBClientManagerDelegate>
So I guess I get A is subclass of B, and B is superclass of A, but what's the relationship between B and C?
In your example above,
C
is a protocol. What you're saying in english terms is:I want a class
A
that subclasses from classB
and also conforms to protocolC
.A protocol is similar to an abstract class in other languages and usually defines a set of methods and or properties that a class must implement in order to conform.