using System; using System.Diagnostics; namespace SpaceInvaders { public abstract class List { //---------------------------------------------------------------- // PURE VIRTUAL METHODS //---------------------------------------------------------------- public abstract void AddToFront(Node pNode); public abstract Node RemoveFromFront(); public abstract void Remove(Node pNode); public abstract Iterator GetIterator(); //---------------------------------------------------------------- // VIRTUAL METHODS //---------------------------------------------------------------- public virtual void AddByPriority(Node pNode) { //does nothing by default } public virtual void InsertBefore(Node pNewNode, Node pNodeAfter) { //does nothing by default } public virtual void InsertAfter(Node pNewNode, Node pNodeBefore) { //does nothing by default <--do i need this? } } // end class } // end namespace