Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  stack  >  Push(class)
stack class : Push(class) method

Description

Adds an instance to the top of the stack.

Syntax

stackInstance.Push(someClass element)

Arguments

ClassNameDescription
someClasselementThe instance to be added.

Return value

None

Sample code

//anyStack is a instance of stack{string} type.

anyStack.Push("ww");

Notes

It's a wrapper of the System.Collections.Generic.Stack<t>.Push(T).

Links for reference

Copyright © Rice All rights reserved.