Пример #1
0
 public MyStack(int capacity)
 {
     mylist = new LinearArrayList(capacity);
 }
Пример #2
0
 /// <summary>
 /// Sets the size of the array
 /// using capacity as the value
 /// to be entered by user
 /// </summary>
 /// <param name="capacity"></param>
 public MyQueue(int capacity)
 {
     mylist = new LinearArrayList(capacity);
 }