Hi,
I have a program where inheritance of protocols are there say:
@protocol A
-(void)methodA
@end
The protocol which inherits:
@protocol B<A>
-(void)methodB
@end
The class which implements @protocolA method is
@interface classB<B>
@end
@implementation classB
-(void)methodA
{
//somecode
}
@end
Now i wanted the methodA to be called from Some other class:
@implementation SomeotherClass
{
//call of methodA
//????
id<A>obj=[[classB alloc]init];//i have tried it
[obj methodA];// even this is not working
}
How to do that?