Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem 7.120 pts] Given the following class definition: class Node private char

ID: 3779309 • Letter: P

Question

Problem 7.120 pts] Given the following class definition: class Node private char element, Node next, public: Node(char e) element e, next NULL), Node (char e, Node NXelementEe;next N), void set element char e) felement char read element() {return element void set next (Node* N) {next N. char& ref element freturn element) Node & ref next() freturn next describeldraw the entities and memory usage utilized by the arguments and the return value of the member functions (variables, pointers, references, For example, a function defined as an additional inline member of the class Node: node read next() {return next Return: Value of type Node pointer Argument: none As another example, a function (unrelated to this class): int f(int p, int& a) return (2+p*); Value of type integer Return: Integer pointer Reference of an integer Arguments Answers 7.a [3 pts] Node(char e, Node N) element e,next N;) Return: Arguments:

Explanation / Answer

7)a. Return : none

Arguments : one character, one node type pointer

7)b. Return : void

Arguments: one character

7) c. Return : character

Arguments : none

7) d. Return : void

Argument : node type pointer

7) e. Return : reference to character

Arguments: none

7) f. Return : reference to a Node type pointer

Arguments: none