1 /* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */
3 #include <objc/Object.h>
5 /* Test defining a protocol, a class adopting it, and using an object
6 of type `id <protocol>'. */
10 - (void) setEnabled: (BOOL)flag;
13 @interface Feature : Object <Enabling>
20 @implementation Feature
25 - (void) setEnabled: (BOOL)flag
35 object = [Feature new];
37 [object setEnabled: YES];
38 if (![object isEnabled])