// AbsList.h
// This is an abstract class that allows the use of inheritance
// and polymorphism.  This class declares all the functions that
// class ListAr has as virtual.  

#ifndef __AbsList
#define __AbsList

template <class Etype>
class AbsList
{
  public:
    AbsList( ) { }               // default constructor
    virtual ~AbsList( ) { }      // destructor
    virtual void add( const Etype & X ) = 0;	  // add
    virtual void remove( ) = 0;					  // remove
    virtual const Etype & getFront( ) const = 0;  // returns the front item
    virtual int isEmpty( ) const = 0; // checks if list is empty
  private:
	  AbsList( const AbsList & ) { }  // Disable copy constructor
};
#endif
