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();
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment