package ex5_7;

/**
 * Title: Exercise 5.7
 *
 * Description:
 * Stack based on linked list - code not yet written
 *
 * Copyright:   Copyright (c) 2004, 2005
 * Company:     The Open University
 * @author      M257 Course Team
 * @version 1.1 03/07/2005
 */

import java.util.*;

public class LinkedStack implements Stack
{

   // Declare an instance variable which is to reference a LinkedList of Object.

   public LinkedStack()
   {
      // Initialise the instance variable with a new LinkedList object.
      // This LinkedList represents the stack, with the last element of the
      // list corresponding to the top of the stack.
   }

   public void push(Object o)
   {
      // Add Object o to the top of the stack.
   }

   public Object pop()
   {
      // Remove and return the object on the top of the stack.
   }

   public Object peek()
   {
      // Return the item on top of the stack but do not remove it.
   }

   public boolean isEmpty()
   {
      // Return true if the stack is empty.
   }
}
