namespace StackInheritanceLibrary
{
    // class StackInheritance inherits class List's capabilities
    public class StackInheritance : List
    {
        // pass name "stack" to List constructor
        public StackInheritance()
            : base("stack")
        {
        } // end constructor
        // place dataValue at top of stack by inserting 
        // dataValue at front of linked list
        public void Push(object dataValue)
        {
            InsertAtFront(dataValue);
        } // end method Push
        // remove item from top of stack by removing
        // item at front of linked list
        public object Pop()
        {
            return RemoveFromFront();
        } // end method Pop
    } // end class StackInheritance
}
