// ListType.h

// interface file, specification file

#include <string>
using namespace std;

const int MAX = 100; // max number of items that can be stored in a list

class ListType {
public:
  ListType(); // constructor 
  void add(string x);
    // adds x to list 
  void remove(string x);
    // removes x from list
  void removeAll(string x);
    // removes every occurance of x from the list
  bool find(string x);
    // Returns true if x is on the list, false otherwise.
  void print();
    // prints items in list on screen
  
private:
  string a[MAX]; // list
  int n;         // number of items in list
};

/*
   A constructor is a special function, implicitly invoked when control 
   reaches the declaration of a class object. 
*/

