Schema della classe QueueByStack


public class QueueByStack implements Queue
{
    public QueueByStack()
    {  s = new ArrayStack(); }

    public void enqueue(Object obj)
    {  ... }

    public Object getFront()
    {  ... }

    public Object dequeue()
    {  ... }

    public void makeEmpty()
    {  ... }

    public boolean isEmpty()
    {  ... }

    //campi di esemplare
    private Stack s;
}