Listing 12 The Table class

// table.h: Scrollable input tables

#include "field.h"

class Column;

class Table : public Field
{
   enum {MAXCOLUMNS = 16};

protected:
   int ncols;
   Column *columns[MAXCOLUMNS];

public:
   ~Table();
};

inline Table::~Table()
{
   cout << "~Table()" << endl;

// What the real destructor does:
// for (int i = 0; i < ncols; ++i)
//     delete columns[i];
}
/* End of File */