Saturday, August 25, 2007

Stack

STACK
• Implements a Last-In-First-Out (LIFO) mechanism
• Element joins at top (push) and leaves from top (pop)
• Declared as Stack numbers = new Stack();
• To add a member, call push method numbers.Push(12);
• To remove a member, call pop method number.Pop();

No comments: