Question: In the definition of the Node class below, what does the reserved word friend mean? class Node { public: Node ( string s ) ;
In the definition of the Node class below, what does the reserved word friend mean?
class Node
public:
Nodestring s;
private:
string data;
Node previous;
Node next;
friend class List;
friend class Iterator;
;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
