28 Linked Stack (1) template class LStack: public Stack { private: Link * top; // Pointer to first elem int size; // Count number of elems public: LStack(int sz =DefaultListSize) { top = NULL; size = 0; } bool push(const Elem& item) { top = new Link (item, top); size++; return true; }
{}