// The class definition for StackType using templates class FullStack // Exception class thrown by Push when stack is full. {}; class EmptyStack // Exception class thrown by Pop and Top when stack is emtpy. {}; typedef char ItemType; struct NodeType; class StackType { public: StackType(); ~StackType(); void Push(ItemType); void Pop(); ItemType Top(); bool IsEmpty() const; bool IsFull() const; private: NodeType* topPtr; };