public int Pop() { InclassNode temp = this.top; this.top = this.top.next; this.count--; return(temp.value); }
public void Push(int value) { InclassNode newNode = new InclassNode(value); newNode.next = this.top; this.top = newNode; this.count++; }
public InclassStack(int value) { this.top = new InclassNode(value); this.count++; }
public InclassStack() { this.top = null; this.count = 0; }
public InclassNode(int value) { this.next = null; this.value = value; }
public InclassNode() { this.next = null; this.value = 0; }