public void Push(int num) { Node newNode = new Node(); newNode.num = num; newNode.next = TopOfStack.next; TopOfStack.next = newNode; size++; }
public MyStack() { TopOfStack = new Node(); size = 0; }