A0/Main/Stack/headers/Stack.h
Data pop() {
	    /* replace with your code */
	    // delete top node at the front
	    if (isEmpty()) {
	        return Data();  // return template datatype if already empty
	    }
	    Data popValue = head->getData();
	    Node<Data> *nodeToDel = head;
	    head = head->getNext();
	    delete nodeToDel;   // DELETE NODE
	    return popValue;
	}
// pops the item on the top of the stack off, returning it...
// if the stack is empty, the behavior is undefined
pops the item on the top of the stack off, returning it
if the stack is empty, the behavior is undefined
pops the item on the top of the stack off returning it if the stack is empty the behavior is undefined
Data pop() {
	    if (isEmpty()) {
	        return Data();  
	    }
	    Data popValue = head->getData();
	    Node<Data> *nodeToDel = head;
	    head = head->getNext();
	    delete nodeToDel;   
	    return popValue;
	}
Data pop ( ) { if ( isEmpty ( ) ) { return Data ( ) ; } Data popValue = head -> getData ( ) ; Node < Data > * nodeToDel = head ; head = head -> getNext ( ) ; delete nodeToDel ; return popValue ; }
pops the item on the top of the stack off, returning it...
if the stack is empty, the behavior is undefined
pops the item on the top of the stack off returning it ... if the stack is empty the behavior is undefined
/* replace with your code */ // delete top node at the front // return template datatype if already empty // DELETE NODE