//stack2.cpp //methods for class Stack implemented using list #include #include #include "stack2.h" Stack::Stack():top() {} int Stack::isempty() { return top.isempty(); } void Stack::push(Type x) { top.insertfront(x); } Type Stack::pop() { return top.removefront(); } void Stack::print() { top.print(); }