stack Push Method
<pre><code>class Node
{
object data;
Node nextNode;

}

class stack
{
Node top;

public push()
{

Node aNewNode = new Node();
aNewNode.nextNode = top;
top = aNewNode;

}

}
</code></pre>

<p>can anybody tell why we assign top= aNewNode</p>
