Function stack::construct()

← Back to Class stack



Module adtClass stack → construct()

Description

The constructor. Create an instance of class stack

stack::construct()


Parameters

There are no parameters.


Return Value


Usage Example

import adt/stack
 
stack = stack()
 
stack.push(10)
stack.push(12)
stack.push(8)
 
writeln(stack.pop())