Stack
this is Stack Class.
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
This method will return if stack is empty or not |
|
public |
pop(): * The method pop which will return the top element from the stack |
|
public |
push(a: T) The method push to push element into the stack |
|
public |
This will return the size of the stack |
|
public |
values(): * This function returns the values in a stack |
Public Constructors
public constructor() source
Public Methods
public push(a: T) source
The method push to push element into the stack
Params:
Name | Type | Attribute | Description |
a | T |