4.3.11+Algorithms+using+acces+methods+of+a+collection


 * ** 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

Screenshot from: [|https://msdn.microsoft.com/en-us/library/ybcx56wz.aspx#BKMK_SimpleCollection]

Screenshot from: [|https://msdn.microsoft.com/en-us/library/ybcx56wz.aspx#BKMK_SimpleCollection]

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

Sources:
 * "Topic 4." //IB Computer Science Revision Notes//. N.p., n.d. Web. 02 June 2015. .
 * Worth, John Ray. "4.3.12." //John Ray Worth//. N.p., n.d. Web. 2 June 2015. .
 * "Collections (C# and Visual Basic)." //Collections (C# and Visual Basic)//. N.p., n.d. Web. 02 June 2015. .
 * "4.3 Stacks and Queues." //Princeton University//. N.p., n.d. Web. 02 June 2015. .