An example using the IntegerStack class to instantiate an object and calling member functions defined in the class through the object:
stack: IntegerStack(1000); // create a stack of size 1000
stack.push (1); // push 1 into stack
stack.push (2); // push 2 into stack
stack.pop (); // pop 2 from stack
stack.pop (); // pop 1 from stack