Question: Q 3 . ( 4 0 marks ) Create a class NodeList that contains Node objects. It has the following data members: class NodeList {

Q3.(40 marks) Create a class NodeList that contains Node objects. It has the following data members:
class NodeList { private:
static const size_t LIST_SIZE =500; // the maximum nodes in the list Node *items; // items will point to the dynamically allocated array size_t numItems; // the number of items currently in the list
public:
// member functions to be defined
}
The class should have the following member functions: - One or multiple constructors
- A copy constructor
- A function that prints all the Node ID and values.
- A function that checks if a Node exists in a list by given the ID or the values. - Accessing functions
- A destructor
Create a driver to test the class. Submit the files: NodeList.h, NodeList.cpp, NodeTest.cpp.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!