Extra Credit

Stacks

 

Objective:

 

Write a generic class that creates an instance of a stack data structure using a linked list (NOT an array).  This is a last in first out (LIFO) data structure.  This means information put into it at the beginning can only be accessed at the end.  Here’s a picture

Background

Rules

Stack, which is a generic Stack

 

Demo/Driver Code

Finally write a class that demonstrates that all the stack functionality works. Make sure to demonstrate both Stack and generic traits of your code.