/******************************************************************
*
*   Class: DLink
*
*   Assignment:  Project 3
*
*   Author: Mark Fraser
*   Course:  COP 3530, Summer C 1999
*
*  This class encapsulates a doubly-linked list element
*******************************************************************/

class DLink                     //encapsulates DLL element
{
	/*                DATA             */
	Object lData;               // data item
    DLink next;                  // next link in list
	DLink previous;				// previous link in list
	
	/*             METHODS              */
	DLink(Object elem)           // constructor
    {
    	lData = elem;           // initialize data
    }
	
	DLink(Object elem, DLink p, DLink n)  //c'or with next and prev passed in
	{
		lData = elem;
		previous = p;
		next = n;
	}

}  // end class DLink
