Ejemplo n.º 1
0
 //User-specificed Constructor
 public Stack(int stackSize)
 {
     if (stackSize >= 10)
     {
         stack = new DoubleQ(stackSize);
     }
     else
     {
         throw new ArgumentException("Stack size must be at least 10");
     }
 }
Ejemplo n.º 2
0
 //Default Constructor
 public Stack()
 {
     //creates a default double ended queue with a size
     //of 100
     stack = new DoubleQ();
 }