1 @interface A 2 -(void)method1; 3 @end 4 @interface B 5 -(void)method1 __attribute__((unavailable)); 6 @end 7