Schema della classe StackByQueue


public class StackByQueue implements Stack
{
    public StackByQueue()
    {  q = new ArrayQueue(); }

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

    public Object top()
    {  ... }

    public Object pop()
    {  ... }

    public void makeEmpty()
    {  ... }

    public boolean isEmpty()
    {  ... }

    //campi di esemplare
    private Queue q;
}