Question: 9/using the node class below , write a generic ADT stack using a linked list. Develop a template class and implement the methods: push ,pop,
9/using the node class below , write a generic ADT stack using a linked list. Develop a template class and implement the methods: push ,pop, is_empty, along with the constructor, destructor, copy constructor, assignment operator
Template
Class node{
Public:
Node() :data(),next(nullptr){};
Node(const T x) : data(x),next(nullptr){};
T data;
Node
};
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
