1 /* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */
3 #include <objc/Object.h>
5 /* Tests defining a protocol and a class adopting it */
9 - (void) setEnabled: (BOOL)flag;
12 @interface Feature : Object <Enabling>
19 @implementation Feature
24 - (void) setEnabled: (BOOL)flag
34 object = [Feature new];
36 [object setEnabled: YES];
37 if (![object isEnabled])