Beispiel #1
0
 public T Pop()
 {
     if (IsEmpty())
     {
         Console.WriteLine("Stek is empty "); return(default(T));
     }
     if (position == array.Capacity() - 1)
     {
         Console.WriteLine("Stek is empty "); return(default(T));
     }
     //return array[++position];
     return(array.Get(++position));
 }
Beispiel #2
0
 public override bool IsFull()
 {
     return(array.Capacity() == array.Size());
 }