1 /* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */
4 #import "../../objc-obj-c++-shared/Object1.h"
6 /* Test defining a protocol, a class adopting it, and using an object
7 of type `id <protocol>'. */
11 - (void) setEnabled: (BOOL)flag;
14 @interface Feature : Object <Enabling>
21 @implementation Feature
26 - (void) setEnabled: (BOOL)flag
36 object = [Feature new];
38 [object setEnabled: YES];
39 if (![object isEnabled])