/* LISTING 6 - OBJ.C */

#include <stdio.h>
#include "obj.h"

/* action pack is external */
extern CIRCLE_ACTIONS cact;   



main()
   {
   int col;
   
   /* set color value and actions */
   CIRCLE c1 = { 14, &cact };

   col = (*c1.pcact[GETCOLOR])(&c1);
   printf("c1 is color %d\n", col);

   /* try to get direct access to c1's
          color function */
   /* cgetcolor(&c1); 
       linker error:  cgetcolor :
       unresolved external */
   }

