Listing 13 The Form class

// form.h: Data-entry forms

class Field;

class Form
{
   enum {MAXFIELDS = 32};

   Field *fields[MAXFIELDS];
   int nfields;

public:
   Form();
   ~Form();
   int add(Field *);
};

inline Form::Form()
{
   nfields = 0;
}

/* End of File */