• Access methods of a collection
    • assign key to object, by which the object can be retrieved from collection when needed
    • collection is a class à declare new collection first
    • push
    • pull
    • for each iteration
    • must important significant library

Example: Stack
  • Algorithm for machine handing out plates in the cafeteria.

class Stack();
push(T1);
push(T2);
push(T3);
push(T4);
pop(); removes T4
peek() outputs item at top (T3) without removing

Screen Shot 2015-06-02 at 12.04.10.png
Screenshot from: https://msdn.microsoft.com/en-us/library/ybcx56wz.aspx#BKMK_SimpleCollection

Screen Shot 2015-06-02 at 12.04.00.png
Screenshot from: https://msdn.microsoft.com/en-us/library/ybcx56wz.aspx#BKMK_SimpleCollection

Created By: Lucie Magister
Last update: 02/06/2015

Sources: