Interface PilhaInterface<T>

interface PilhaInterface<T> {
    pilha: T[];
    empilhar(item: T): void;
    eVazio(): boolean;
    removerUltimo(): T;
    topoDaPilha(): T;
}

Type Parameters

  • T

Properties

pilha: T[]

Methods