e class List; template class Node{ friend class List; private: T data; Node* link; }; template class List{ public: List(){first = 0;} void InsertBack(const T& e); void Concatenate(List& b); void Reverse();
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
template <class T> class List;
template <class T>
class Node{
friend class List<T>;
private: T data;
Node* link;
};
template <class T>
class List{
public:
List(){first = 0;}
void InsertBack(const T& e);
void Concatenate(List<T>& b);
void Reverse();
class Iterator{
….
};
Iterator Begin();
Iterator End();
private:
Node* first;
};
I need
The question shows on below photo.


Step by step
Solved in 2 steps









